From 61739ec34d060a208db9506d5a8d94ad7059c7c5 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 8 Jan 2012 18:24:32 +0100 Subject: DFU: include code to switch from DFU to RUNTUIME after bus reset / mannifest --- usb/device/core/USBD_UDPHS.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usb/device/core') diff --git a/usb/device/core/USBD_UDPHS.c b/usb/device/core/USBD_UDPHS.c index f02fa55..4ea6d1a 100644 --- a/usb/device/core/USBD_UDPHS.c +++ b/usb/device/core/USBD_UDPHS.c @@ -41,6 +41,7 @@ #include #include #include +#include #include @@ -1119,6 +1120,11 @@ void USBD_IrqHandler(void) // TRACE_DEBUG_WP("EoB "); +#if defined(BOARD_USB_DFU) && !defined(dfu) + if (g_dfu.past_manifest) + USBDFU_SwitchToApp(); +#endif + // The device enters the Default state deviceState = USBD_STATE_DEFAULT; // MCK + UDPCK are already enabled -- cgit v1.2.3