From 59c4871f8011247a056f6ca2ca8aca89000e3841 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 28 Apr 2010 07:48:26 +0000 Subject: USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run. --- Bootloaders/DFU/BootloaderDFU.c | 3 +++ Bootloaders/DFU/BootloaderDFU.h | 1 + 2 files changed, 4 insertions(+) (limited to 'Bootloaders/DFU') diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 157b78ffb..d90accb6c 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -101,6 +101,9 @@ int main(void) { /* Configure hardware required by the bootloader */ SetupHardware(); + + /* Enable global interrupts so that the USB stack can function */ + sei(); /* Run the USB management task while the bootloader is supposed to be running */ while (RunBootloader || WaitForExit) diff --git a/Bootloaders/DFU/BootloaderDFU.h b/Bootloaders/DFU/BootloaderDFU.h index ca53266bf..4583d6ce1 100644 --- a/Bootloaders/DFU/BootloaderDFU.h +++ b/Bootloaders/DFU/BootloaderDFU.h @@ -43,6 +43,7 @@ #include #include #include + #include #include #include "Descriptors.h" -- cgit v1.2.3