mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
Merge branch 'kredon/simtrace' of ssh://gerrit.osmocom.org:29418/simtrace2 into kredon/simtrace
Change-Id: Id868520d6603f2bcb79a0aaaf6413dc83938524b
This commit is contained in:
@@ -94,6 +94,7 @@ int USBDFU_handle_dnload(uint8_t altif, unsigned int offset,
|
||||
rc = DFU_RET_ZLP;
|
||||
break;
|
||||
default:
|
||||
/* FIXME: set error codes */
|
||||
TRACE_ERROR("DFU download for unknown AltIf %d\n\r", altif);
|
||||
rc = DFU_RET_STALL;
|
||||
break;
|
||||
@@ -214,6 +215,10 @@ extern int main(void)
|
||||
PIO_Clear(&pinsLeds[LED_NUM_GREEN]);
|
||||
#endif
|
||||
|
||||
/* Enable watchdog for 500ms, with no window */
|
||||
WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT |
|
||||
(WDT_GetPeriod(500) << 16) | WDT_GetPeriod(500));
|
||||
|
||||
PIO_InitializeInterrupts(0);
|
||||
|
||||
EEFC_ReadUniqueID(g_unique_id);
|
||||
|
||||
Reference in New Issue
Block a user