diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-11 00:47:29 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-11 00:47:29 +0200 |
commit | 253991789a007836475eef9f3e846636bd8acb59 (patch) | |
tree | 66ed76f84ae3b268bb9cf8f4880fb5058a091019 | |
parent | 0709d2d842861f05ed0e194dfe31b52e2ff80c12 (diff) |
dfu: make sure to not bloat the loader with main board init stuff.
-rw-r--r-- | firmware/libboard/qmod/source/board_qmod.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/libboard/qmod/source/board_qmod.c b/firmware/libboard/qmod/source/board_qmod.c index d14c29c..4962579 100644 --- a/firmware/libboard/qmod/source/board_qmod.c +++ b/firmware/libboard/qmod/source/board_qmod.c @@ -207,11 +207,13 @@ void board_exec_dbg_cmd(int ch) void board_main_top(void) { +#ifndef APPLICATION_dfu usb_buf_init(); wwan_led_init(); wwan_perst_init(); sim_switch_init(); +#endif /* make sure we can detect whether running in ST12 or ST34 */ PIO_Configure(&pin_1234_detect, 1); @@ -224,7 +226,10 @@ void board_main_top(void) } PIO_Configure(&pin_peer_rst, 1); PIO_Configure(&pin_peer_erase, 1); + +#ifndef APPLICATION_dfu i2c_pin_init(); +#endif if (qmod_sam3_is_12()) { TRACE_INFO("Detected Quad-Modem ST12\n\r"); @@ -239,6 +244,8 @@ void board_main_top(void) /* Obtain the circuit board version (currently just prints voltage */ get_board_version_adc(); +#ifndef APPLICATION_dfu /* Initialize checking for card insert/remove events */ card_present_init(); +#endif } |