32 #include <avr/pgmspace.h> 39 #define CMD_BUFFER_SIZE 100 43 #define CMD_HISTORY_SIZE 4 46 #define ESCAPE_CHAR_CODE 27 52 #define MAX_PAGE_NUM ((PROGMEM_SIZE - BOOT_SECTION_SIZE) / SPM_PAGESIZE / 2 - 1) 55 #define RESET_TIMEOUT 2 115 #endif // _SERIAL_COM_H void init_serial_communication(const struct serial_command commands[], uint8_t commands_size)
Initializes the USB communication module.
bool(* cmd_handler_t)(const char *cmd)
Type for command handlers.
Definition: serial_communication.h:62
PGM_P cmd_string
The command as typed in the console.
Definition: serial_communication.h:74
void serial_communication_task(void)
Main task for USB communication.
Definition: serial_communication.c:477
PGM_P help_string
Definition: serial_communication.h:76
Command specification.
Definition: serial_communication.h:72
cmd_handler_t handler
Definition: serial_communication.h:86