27 #include "archlib_ex.h"
28 #include "xum1541_types.h"
38 main(
int argc,
char **argv)
43 ret = opencbm_plugin_init();
48 fprintf(stderr,
"initialization error, aborting\n");
52 fprintf(stderr,
"Success. xum1541 now in bootloader mode.\n");
53 fprintf(stderr,
"Run your firmware update program now.\n");
55 fprintf(stderr,
"error entering bootloader mode, aborting\n");
58 opencbm_plugin_uninit();
void CBMAPIDECL opencbm_plugin_driver_close(CBM_FILE HandleDevice)
Closes the driver.
int CBMAPIDECL opencbm_plugin_driver_open(CBM_FILE *HandleDevice, const char *const Port)
Opens the driver.
int CBMAPIDECL xum1541_plugin_control_msg(CBM_FILE HandleDevice, unsigned int cmd)
Sends a command to the xum1541 device.
int ARCH_MAINDECL main(int argc, char **argv)
Initialize the xum1541 device This function tries to find and identify the xum1541 device...
DLL interface for accessing the driver.
Define makros and functions which account for differences between the different architectures.