diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-09-06 22:51:27 +0200 |
---|---|---|
committer | Kévin Redon <kredon@sysmocom.de> | 2018-09-06 22:51:32 +0200 |
commit | 6303c39a004c235d63b7b0bc9b297c8782d035f2 (patch) | |
tree | edcdbff19cff9ae5af9f846050c8a3ac84c1e202 /firmware | |
parent | ad0958e9e371f4ba6ef6d855a54c82c2075d1873 (diff) |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/libboard/owhw/source/owhw.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/libboard/owhw/source/owhw.c b/firmware/libboard/owhw/source/owhw.c index 91c1294..be62660 100644 --- a/firmware/libboard/owhw/source/owhw.c +++ b/firmware/libboard/owhw/source/owhw.c @@ -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) |