Data Structures | |
union | address_t |
struct | req_header_t |
Structure used to describe a frame header. More... | |
Macros | |
#define | STATE_appDETACH 0x01 |
#define | STATE_appIDLE 0x00 |
#define | STATE_dfuDNBUSY 0x04 |
#define | STATE_dfuDNLOAD_IDLE 0x05 |
#define | STATE_dfuDNLOAD_SYNC 0x03 |
#define | STATE_dfuERROR 0x0A |
#define | STATE_dfuIDLE 0x02 |
#define | STATE_dfuMANIFEST 0x07 |
#define | STATE_dfuMANIFEST_SYNC 0x06 |
#define | STATE_dfuMANIFEST_WAIT_RESET 0x08 |
#define | STATE_dfuUPLOAD_IDLE 0x09 |
#define | STATUS_errADDRESS 0x08 |
#define | STATUS_errCHECK_ERASED 0x05 |
#define | STATUS_errERASE 0x04 |
#define | STATUS_errFILE 0x02 |
#define | STATUS_errFIRMWARE 0x0A |
#define | STATUS_errNOTDONE 0x09 |
#define | STATUS_errPOR 0x0D |
#define | STATUS_errPROG 0x06 |
#define | STATUS_errSTALLEDPKT 0x0F |
#define | STATUS_errTARGET 0x01 |
#define | STATUS_errUNKNOWN 0x0E |
#define | STATUS_errUSBR 0x0C |
#define | STATUS_errVENDOR 0x0B |
#define | STATUS_errVERIFY 0x07 |
#define | STATUS_errWRITE 0x03 |
#define | STATUS_OK 0x00 |
Functions | |
void | uart_dfu_start (void) |
Configure the USART, initialize the DFU and setup/calculate the autobaud. More... | |
void | uart_execute_dfu_command (req_header_t *req_header, U8 *checksum) |
Execute the DFU command required by the external programmer tool. More... | |
U8 | uart_get_dfu_command (req_header_t *req_header) |
Get the DFU command from the external programmer tool. More... | |
Variables | |
U8 | uart_dfu_state |
U8 | uart_dfu_status |
#define STATE_appDETACH 0x01 |
#define STATE_appIDLE 0x00 |
#define STATE_dfuDNBUSY 0x04 |
#define STATE_dfuDNLOAD_IDLE 0x05 |
#define STATE_dfuDNLOAD_SYNC 0x03 |
#define STATE_dfuERROR 0x0A |
#define STATE_dfuIDLE 0x02 |
#define STATE_dfuMANIFEST 0x07 |
#define STATE_dfuMANIFEST_SYNC 0x06 |
#define STATE_dfuMANIFEST_WAIT_RESET 0x08 |
#define STATE_dfuUPLOAD_IDLE 0x09 |
#define STATUS_errADDRESS 0x08 |
Referenced by process_cmd_grp_select().
#define STATUS_errCHECK_ERASED 0x05 |
#define STATUS_errERASE 0x04 |
#define STATUS_errFILE 0x02 |
#define STATUS_errFIRMWARE 0x0A |
#define STATUS_errNOTDONE 0x09 |
#define STATUS_errPOR 0x0D |
#define STATUS_errPROG 0x06 |
#define STATUS_errSTALLEDPKT 0x0F |
#define STATUS_errTARGET 0x01 |
#define STATUS_errUNKNOWN 0x0E |
#define STATUS_errUSBR 0x0C |
#define STATUS_errVENDOR 0x0B |
#define STATUS_errVERIFY 0x07 |
#define STATUS_errWRITE 0x03 |
#define STATUS_OK 0x00 |
void uart_dfu_start | ( | void | ) |
Configure the USART, initialize the DFU and setup/calculate the autobaud.
References Get_debug_register, address_t::long_address, MEM_FLASH, PRODUCT_MANUFACTURER_ID_ADDRESS, PRODUCT_PART_NUMBER_LSB_ADDRESS, PRODUCT_PART_NUMBER_MSB_ADDRESS, PRODUCT_REVISION_ADDRESS, Rd_bitfield, stop_dfu_and_reset(), uart_autobaud_process(), and uart_configure().
Referenced by main().
void uart_execute_dfu_command | ( | req_header_t * | req_header, |
U8 * | checksum | ||
) |
Execute the DFU command required by the external programmer tool.
References CMD_GRP_DATA, CMD_GRP_DNLOAD, CMD_GRP_EXEC, CMD_GRP_SELECT, CMD_GRP_UPLOAD, DFU_CMD_STATUS_errUNKNOWN, DFU_CMD_STATUS_OK, dump_dfu_packet_and_reset_dfu_state(), force_isp(), is_isp_forced(), req_header_t::length, process_cmd_grp_data(), process_cmd_grp_dnload(), process_cmd_grp_exec(), process_cmd_grp_select(), process_cmd_grp_upload(), and req_header_t::type.
Referenced by main().
U8 uart_get_dfu_command | ( | req_header_t * | req_header | ) |
Get the DFU command from the external programmer tool.
References DFU_PACKET_START_CHAR, parse_dfu_intel_hex_header(), and uart_dfu_read_char().
Referenced by main().
U8 uart_dfu_state |
U8 uart_dfu_status |