diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-09-06 22:52:42 +0200 |
---|---|---|
committer | Kévin Redon <kredon@sysmocom.de> | 2018-09-06 22:52:45 +0200 |
commit | 64f69fc4aca1b5adc077447a4467d603f6d23445 (patch) | |
tree | 573c2926623abc80b3aadff20aabeac9232e4ccf | |
parent | 6303c39a004c235d63b7b0bc9b297c8782d035f2 (diff) |
owhw: add missing function board_main_top
the board_main_top function was not defined, causing a hard fault
when initializing the board
Change-Id: Ib92003416648822c4115472992850c592bc4047a
-rw-r--r-- | firmware/libboard/owhw/source/owhw.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/libboard/owhw/source/owhw.c b/firmware/libboard/owhw/source/owhw.c index be62660..3bf51ec 100644 --- a/firmware/libboard/owhw/source/owhw.c +++ b/firmware/libboard/owhw/source/owhw.c @@ -21,6 +21,7 @@ #include "chip.h" #include "board.h" #include "utils.h" +#include "usb_buf.h" static const Pin pins_cardsim[] = PINS_CARDSIM; @@ -42,6 +43,13 @@ void board_exec_dbg_cmd(int ch) } } +void board_main_top(void) +{ +#ifndef APPLICATION_dfu + usb_buf_init(); +#endif +} + void cardsim_set_simpres(uint8_t slot, int present) { if (slot > 1) |