board_simtrace: Add minimal debug menu on debug USART

This commit is contained in:
Harald Welte
2017-11-28 22:10:49 +01:00
parent ed75c62acf
commit 7b250bfc8d

View File

@@ -10,8 +10,28 @@
void board_exec_dbg_cmd(int ch)
{
switch (ch) {
case '?':
printf("\t?\thelp\n\r");
printf("\tR\treset SAM3\n\r");
break;
case 'R':
printf("Asking NVIC to reset us\n\r");
USBD_Disconnect();
NVIC_SystemReset();
break;
default:
printf("Unknown command '%c'\n\r", ch);
break;
}
}
void board_main_top(void)
{
#ifndef APPLICATION_dfu
usb_buf_init();
/* Initialize checking for card insert/remove events */
//card_present_init();
#endif
}