diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-09-17 21:00:59 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-09-17 21:00:59 +0000 |
commit | 1eefbf9041ba71667a0dcf351685512db1244499 (patch) | |
tree | f3da4fc70cca293cd6ec93c9ed28c0878470d4a4 /Projects | |
parent | 92ee5ad826f567536c3d0a235ab6eeee919a30ab (diff) | |
download | lufa-1eefbf9041ba71667a0dcf351685512db1244499.tar.gz lufa-1eefbf9041ba71667a0dcf351685512db1244499.tar.bz2 lufa-1eefbf9041ba71667a0dcf351685512db1244499.zip |
Use the framework provided GlobalInterruptEnable() function instead of the AVR8/XMEGA specific sei() macro, for future demo/project portability.
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/AVRISP-MKII/AVRISP-MKII.c | 2 | ||||
-rw-r--r-- | Projects/Benito/Benito.c | 2 | ||||
-rw-r--r-- | Projects/HIDReportViewer/HIDReportViewer.c | 2 | ||||
-rw-r--r-- | Projects/LEDNotifier/LEDNotifier.c | 2 | ||||
-rw-r--r-- | Projects/MIDIToneGenerator/MIDIToneGenerator.c | 2 | ||||
-rw-r--r-- | Projects/Magstripe/Magstripe.c | 2 | ||||
-rw-r--r-- | Projects/MediaController/MediaController.c | 2 | ||||
-rw-r--r-- | Projects/MissileLauncher/MissileLauncher.c | 2 | ||||
-rw-r--r-- | Projects/RelayBoard/RelayBoard.c | 2 | ||||
-rw-r--r-- | Projects/SerialToLCD/SerialToLCD.c | 2 | ||||
-rw-r--r-- | Projects/TempDataLogger/TempDataLogger.c | 2 | ||||
-rw-r--r-- | Projects/USBtoSerial/USBtoSerial.c | 2 | ||||
-rw-r--r-- | Projects/Webserver/Webserver.c | 2 | ||||
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 2 |
14 files changed, 14 insertions, 14 deletions
diff --git a/Projects/AVRISP-MKII/AVRISP-MKII.c b/Projects/AVRISP-MKII/AVRISP-MKII.c index c4623fd8e..9e1337af6 100644 --- a/Projects/AVRISP-MKII/AVRISP-MKII.c +++ b/Projects/AVRISP-MKII/AVRISP-MKII.c @@ -45,7 +45,7 @@ int main(void) V2Protocol_Init(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/Benito/Benito.c b/Projects/Benito/Benito.c index d68cee3c9..2263f391c 100644 --- a/Projects/Benito/Benito.c +++ b/Projects/Benito/Benito.c @@ -93,7 +93,7 @@ int main(void) RingBuffer_InitBuffer(&USARTtoUSB_Buffer, USARTtoUSB_Buffer_Data, sizeof(USARTtoUSB_Buffer_Data)); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/HIDReportViewer/HIDReportViewer.c b/Projects/HIDReportViewer/HIDReportViewer.c index fa44c0843..62c638a88 100644 --- a/Projects/HIDReportViewer/HIDReportViewer.c +++ b/Projects/HIDReportViewer/HIDReportViewer.c @@ -73,7 +73,7 @@ int main(void) puts_P(PSTR(ESC_FG_CYAN "HID Device Report Viewer Running.\r\n" ESC_FG_WHITE)); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/LEDNotifier/LEDNotifier.c b/Projects/LEDNotifier/LEDNotifier.c index dd3a8ae3a..141063cf8 100644 --- a/Projects/LEDNotifier/LEDNotifier.c +++ b/Projects/LEDNotifier/LEDNotifier.c @@ -114,7 +114,7 @@ int main(void) /* Create a regular blocking character stream for the interface so that it can be used with the stdio.h functions */ CDC_Device_CreateBlockingStream(&VirtualSerial_CDC_Interface, &USBSerialStream); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/MIDIToneGenerator/MIDIToneGenerator.c b/Projects/MIDIToneGenerator/MIDIToneGenerator.c index 5f17fdd1c..25a3bb47c 100644 --- a/Projects/MIDIToneGenerator/MIDIToneGenerator.c +++ b/Projects/MIDIToneGenerator/MIDIToneGenerator.c @@ -93,7 +93,7 @@ int main(void) SetupHardware(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/Magstripe/Magstripe.c b/Projects/Magstripe/Magstripe.c index ecdf68b0b..8d52e6a75 100644 --- a/Projects/Magstripe/Magstripe.c +++ b/Projects/Magstripe/Magstripe.c @@ -79,7 +79,7 @@ int main(void) for (uint8_t Buffer = 0; Buffer < TOTAL_TRACKS; Buffer++) BitBuffer_Init(&TrackDataBuffers[Buffer]); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/MediaController/MediaController.c b/Projects/MediaController/MediaController.c index 24f02580d..51502c764 100644 --- a/Projects/MediaController/MediaController.c +++ b/Projects/MediaController/MediaController.c @@ -68,7 +68,7 @@ int main(void) SetupHardware(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/MissileLauncher/MissileLauncher.c b/Projects/MissileLauncher/MissileLauncher.c index 7f40044fe..ae225b173 100644 --- a/Projects/MissileLauncher/MissileLauncher.c +++ b/Projects/MissileLauncher/MissileLauncher.c @@ -98,7 +98,7 @@ int main(void) CmdState = CMD_STOP; LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/RelayBoard/RelayBoard.c b/Projects/RelayBoard/RelayBoard.c index 77ea30315..8fd5baf83 100644 --- a/Projects/RelayBoard/RelayBoard.c +++ b/Projects/RelayBoard/RelayBoard.c @@ -45,7 +45,7 @@ int main(void) { SetupHardware(); - sei(); + GlobalInterruptEnable(); for (;;) USB_USBTask(); diff --git a/Projects/SerialToLCD/SerialToLCD.c b/Projects/SerialToLCD/SerialToLCD.c index b94c5a4a2..21f3e4af4 100644 --- a/Projects/SerialToLCD/SerialToLCD.c +++ b/Projects/SerialToLCD/SerialToLCD.c @@ -83,7 +83,7 @@ int main(void) RingBuffer_InitBuffer(&FromHost_Buffer, FromHost_Buffer_Data, sizeof(FromHost_Buffer_Data)); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/TempDataLogger/TempDataLogger.c b/Projects/TempDataLogger/TempDataLogger.c index eb63bc6a9..e03f6d861 100644 --- a/Projects/TempDataLogger/TempDataLogger.c +++ b/Projects/TempDataLogger/TempDataLogger.c @@ -153,7 +153,7 @@ int main(void) OpenLogFile(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index a0b8de4c4..fb9ac8770 100644 --- a/Projects/USBtoSerial/USBtoSerial.c +++ b/Projects/USBtoSerial/USBtoSerial.c @@ -90,7 +90,7 @@ int main(void) RingBuffer_InitBuffer(&USARTtoUSB_Buffer, USARTtoUSB_Buffer_Data, sizeof(USARTtoUSB_Buffer_Data)); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/Webserver/Webserver.c b/Projects/Webserver/Webserver.c index 899b97d02..c6556beab 100644 --- a/Projects/Webserver/Webserver.c +++ b/Projects/Webserver/Webserver.c @@ -44,7 +44,7 @@ int main(void) SetupHardware(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 7909cc45c..0b5b6125e 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -90,7 +90,7 @@ int main(void) SetupHardware(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); - sei(); + GlobalInterruptEnable(); for (;;) { |