13 #ifndef __INERTIALSENSEBOOTLOADER_H 14 #define __INERTIALSENSEBOOTLOADER_H 23 #define IS_BAUD_RATE_BOOTLOADER 921600 26 #define IS_BAUD_RATE_BOOTLOADER_RS232 230400 29 #define IS_BAUD_RATE_BOOTLOADER_SLOW 115200 32 #define IS_BAUD_RATE_BOOTLOADER_LEGACY 2000000 34 #define ENABLE_BOOTLOADER_BAUD_DETECTION 1 35 #define BOOTLOADER_REFRESH_DELAY 500 36 #define BOOTLOADER_RESPONSE_DELAY 10 37 #if ENABLE_BOOTLOADER_BAUD_DETECTION 38 #define BOOTLOADER_RETRIES 30 40 #define BOOTLOADER_RETRIES 1 43 #ifndef BOOTLOADER_ERROR_LENGTH 44 #define BOOTLOADER_ERROR_LENGTH 512 // Set to zero to disable 75 char bootloadEnableCmd[16];
153 #endif // __INERTIALSENSEBOOTLOADER_H int bootloaderClosestBaudRate(int baudRate)
unsigned int enableVerify
int bootloadUpdateBootloader(serial_port_t *port, const char *fileName, const void *obj, pfnBootloadProgress uploadProgress, pfnBootloadProgress verifyProgress)
int bootloaderCycleBaudRate(int baudRate)
const char * verifyFileName
pfnBootloadProgress uploadProgress
int bootloadGetBootloaderVersionFromFile(const char *bootName, int *verMajor, char *verMinor)
int bootloadUpdateBootloaderEx(bootload_params_t *p)
pfnBootloadStatus statusText
int enableBootloader(serial_port_t *port, int baudRate, char *error, int errorLength, const char *bootloadEnableCmd)
int(* pfnBootloadProgress)(const void *obj, float percent)
int bootloadFileEx(bootload_params_t *params)
int disableBootloader(serial_port_t *port, char *error, int errorLength)
void(* pfnBootloadStatus)(const void *obj, const char *infoString)
int forceBootloaderUpdate
int bootloadFile(serial_port_t *port, const char *fileName, const char *bootName, const void *obj, pfnBootloadProgress uploadProgress, pfnBootloadProgress verifyProgress)
pfnBootloadProgress verifyProgress
#define BOOTLOADER_ERROR_LENGTH