Change in simtrace2[master]: owhw: add missing function board_exec_dbg_cmd
Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10824 ) Change subject: owhw: add missing function board_exec_dbg_cmd .. 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 --- M firmware/libboard/owhw/source/owhw.c 1 file changed, 18 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified Harald Welte: Looks good to me, approved 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) -- To view, visit https://gerrit.osmocom.org/10824 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I3ecc1f7bdb2484f5a67c36163d33ebc065e4e709 Gerrit-Change-Number: 10824 Gerrit-PatchSet: 1 Gerrit-Owner: Kévin Redon Gerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder (102)
Change in simtrace2[master]: owhw: add missing function board_exec_dbg_cmd
Harald Welte has posted comments on this change. ( https://gerrit.osmocom.org/10824 ) Change subject: owhw: add missing function board_exec_dbg_cmd .. Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/10824 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I3ecc1f7bdb2484f5a67c36163d33ebc065e4e709 Gerrit-Change-Number: 10824 Gerrit-PatchSet: 1 Gerrit-Owner: Kévin Redon Gerrit-Reviewer: Harald Welte Gerrit-Reviewer: Jenkins Builder (102) Gerrit-Comment-Date: Fri, 07 Sep 2018 06:31:44 + Gerrit-HasComments: No Gerrit-HasLabels: Yes
Change in simtrace2[master]: owhw: add missing function board_exec_dbg_cmd
Kévin Redon has uploaded this change for review. ( https://gerrit.osmocom.org/10824 Change subject: owhw: add missing function board_exec_dbg_cmd .. 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 --- M firmware/libboard/owhw/source/owhw.c 1 file changed, 18 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/24/10824/1 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) -- To view, visit https://gerrit.osmocom.org/10824 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: simtrace2 Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I3ecc1f7bdb2484f5a67c36163d33ebc065e4e709 Gerrit-Change-Number: 10824 Gerrit-PatchSet: 1 Gerrit-Owner: Kévin Redon