diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-01-08 18:24:32 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-08 18:24:32 +0100 |
commit | 61739ec34d060a208db9506d5a8d94ad7059c7c5 (patch) | |
tree | 32ecf2bb3e10a10bcd9bb9af2fd70ac37ac42f6e /usb/device/core | |
parent | 1b1befdeb5c24e5434952718cdd1b78cb6556fe5 (diff) |
DFU: include code to switch from DFU to RUNTUIME after bus reset / mannifest
Diffstat (limited to 'usb/device/core')
-rw-r--r-- | usb/device/core/USBD_UDPHS.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <usb/common/core/USBEndpointDescriptor.h>
#include <usb/common/core/USBGenericRequest.h>
#include <usb/common/core/USBFeatureRequest.h>
+#include <usb/device/dfu/dfu.h>
#include <stdio.h>
@@ -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
|