owhw: add missing function board_exec_dbg_cmd

the board_exec_dbg_cmd function was not defined, causing a hard
fault on user input

Change-Id: I3ecc1f7bdb2484f5a67c36163d33ebc065e4e709
This commit is contained in:
Kevin Redon 2018-09-06 22:51:27 +02:00
parent ad0958e9e3
commit 6303c39a00
1 changed files with 18 additions and 0 deletions

View File

@ -24,6 +24,24 @@
static const Pin pins_cardsim[] = PINS_CARDSIM;
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 cardsim_set_simpres(uint8_t slot, int present)
{
if (slot > 1)