#include #include #include #include #define CONST #define FLASH typedef uint16_t (*functype_t)(CONST char *, CONST char *); typedef struct { PGM_P command; functype_t function; } str_func_entry; static CONST char FLASH baud_str[] PROGMEM = "BAUD"; static uint16_t set_baud(CONST char * rate_ptr, CONST char * tok_ptr ) { return(0); } static FLASH str_func_entry cmd_func_table[] PROGMEM = { {baud_str, set_baud} }; int main(void) { (*(cmd_func_table[0].function))(NULL, NULL); return(0); }