mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-20 07:18:33 +03:00
DFU: Disable LED blinking code
Something odd is happening that breaks DFU mode if we blink. Let's remove this feature for now.
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
#include "usb/common/dfu/usb_dfu.h"
|
#include "usb/common/dfu/usb_dfu.h"
|
||||||
#include "manifest.h"
|
#include "manifest.h"
|
||||||
|
|
||||||
|
#include <osmocom/core/timer.h>
|
||||||
|
|
||||||
#define ALTIF_RAM 0
|
#define ALTIF_RAM 0
|
||||||
#define ALTIF_FLASH 1
|
#define ALTIF_FLASH 1
|
||||||
|
|
||||||
@@ -178,9 +180,11 @@ extern int main(void)
|
|||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
uint32_t reset_cause = (RSTC->RSTC_SR & RSTC_SR_RSTTYP_Msk) >> RSTC_SR_RSTTYP_Pos;
|
uint32_t reset_cause = (RSTC->RSTC_SR & RSTC_SR_RSTTYP_Msk) >> RSTC_SR_RSTTYP_Pos;
|
||||||
|
|
||||||
|
#if 0
|
||||||
led_init();
|
led_init();
|
||||||
led_blink(LED_GREEN, BLINK_3O_30F);
|
led_blink(LED_GREEN, BLINK_3O_30F);
|
||||||
led_blink(LED_RED, BLINK_3O_30F);
|
led_blink(LED_RED, BLINK_3O_30F);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Enable watchdog for 500ms, with no window */
|
/* Enable watchdog for 500ms, with no window */
|
||||||
WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT |
|
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)]);
|
putchar(rotor[i++ % ARRAY_SIZE(rotor)]);
|
||||||
#endif
|
#endif
|
||||||
check_exec_dbg_cmd();
|
check_exec_dbg_cmd();
|
||||||
//osmo_timers_prepare();
|
#if 0
|
||||||
//osmo_timers_update();
|
osmo_timers_prepare();
|
||||||
|
osmo_timers_update();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (USBD_GetState() < USBD_STATE_CONFIGURED) {
|
if (USBD_GetState() < USBD_STATE_CONFIGURED) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user