+/* ************* */
+
+struct cmd_test_result {
+ fixed_string_t cmd;
+};
+
+extern uint8_t imuboard; /* XXX test */
+static void cmd_test_parsed(void *parsed_result, void *data)
+{
+ (void)parsed_result;
+ (void)data;
+ printf("%d\n", imuboard);
+ i2c_protocol_debug();
+}
+
+const char PROGMEM str_test[] = "test";
+const parse_token_string_t PROGMEM cmd_test_cmd =
+ TOKEN_STRING_INITIALIZER(struct cmd_test_result, cmd,
+ str_test);
+
+const char PROGMEM help_test[] = "test";
+const parse_inst_t PROGMEM cmd_test = {
+ .f = cmd_test_parsed, /* function to call */
+ .data = NULL, /* 2nd arg of func */
+ .help_str = help_test,
+ .tokens = { /* token list, NULL terminated */
+ (PGM_P)&cmd_test_cmd,
+ NULL,
+ },
+};
+
+