From 704941fe8bed209c2848c8844d306867f78c2192 Mon Sep 17 00:00:00 2001 From: Dean 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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1219 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Demos/Device/LowLevel/MIDI/MIDI.c | 3 ++- Demos/Device/LowLevel/MIDI/MIDI.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Demos/Device/LowLevel/MIDI') diff --git a/Demos/Device/LowLevel/MIDI/MIDI.c b/Demos/Device/LowLevel/MIDI/MIDI.c index edfc56f4..03536b2c 100644 --- a/Demos/Device/LowLevel/MIDI/MIDI.c +++ b/Demos/Device/LowLevel/MIDI/MIDI.c @@ -44,7 +44,8 @@ int main(void) SetupHardware(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - + sei(); + for (;;) { MIDI_Task(); diff --git a/Demos/Device/LowLevel/MIDI/MIDI.h b/Demos/Device/LowLevel/MIDI/MIDI.h index 82e42da0..a4975272 100644 --- a/Demos/Device/LowLevel/MIDI/MIDI.h +++ b/Demos/Device/LowLevel/MIDI/MIDI.h @@ -40,6 +40,7 @@ #include #include #include + #include #include #include "Descriptors.h" -- cgit v1.2.3