diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-03-06 22:47:06 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-06 22:47:06 +0100 |
commit | 3bbaba0090d27d445165a28db6ec75b9f00da379 (patch) | |
tree | 221b75c2f975e97f745b7e039ed165aa44a6ea90 /firmware/apps | |
parent | e8869fb8ff18673aaa655f1378231fb5d52f8eb9 (diff) |
DFU: Disable LED blinking code
Something odd is happening that breaks DFU mode if we blink. Let's
remove this feature for now.
Diffstat (limited to 'firmware/apps')
-rw-r--r-- | firmware/apps/dfu/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/apps/dfu/main.c b/firmware/apps/dfu/main.c index a99c3fd..2b44f01 100644 --- a/firmware/apps/dfu/main.c +++ b/firmware/apps/dfu/main.c @@ -4,6 +4,8 @@ #include "usb/common/dfu/usb_dfu.h" #include "manifest.h" +#include <osmocom/core/timer.h> + #define ALTIF_RAM 0 #define ALTIF_FLASH 1 @@ -178,9 +180,11 @@ extern int main(void) unsigned int i = 0; uint32_t reset_cause = (RSTC->RSTC_SR & RSTC_SR_RSTTYP_Msk) >> RSTC_SR_RSTTYP_Pos; +#if 0 led_init(); led_blink(LED_GREEN, BLINK_3O_30F); led_blink(LED_RED, BLINK_3O_30F); +#endif /* Enable watchdog for 500ms, with no window */ WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT | @@ -237,8 +241,10 @@ extern int main(void) putchar(rotor[i++ % ARRAY_SIZE(rotor)]); #endif check_exec_dbg_cmd(); - //osmo_timers_prepare(); - //osmo_timers_update(); +#if 0 + osmo_timers_prepare(); + osmo_timers_update(); +#endif if (USBD_GetState() < USBD_STATE_CONFIGURED) { |