Commit 1eefbf90 authored by Dean Camera's avatar Dean Camera
Browse files

Use the framework provided GlobalInterruptEnable() function instead of the...

Use the framework provided GlobalInterruptEnable() function instead of the AVR8/XMEGA specific sei() macro, for future demo/project portability.
parent 92ee5ad8
...@@ -119,7 +119,7 @@ int main(void) ...@@ -119,7 +119,7 @@ int main(void)
LEDs_SetAllLEDs(LEDS_LED1); LEDs_SetAllLEDs(LEDS_LED1);
/* Enable global interrupts so that the USB stack can function */ /* Enable global interrupts so that the USB stack can function */
sei(); GlobalInterruptEnable();
while (RunBootloader) while (RunBootloader)
{ {
......
...@@ -155,7 +155,7 @@ int main(void) ...@@ -155,7 +155,7 @@ int main(void)
LEDs_SetAllLEDs(LEDS_LED1); LEDs_SetAllLEDs(LEDS_LED1);
/* Enable global interrupts so that the USB stack can function */ /* Enable global interrupts so that the USB stack can function */
sei(); GlobalInterruptEnable();
/* Run the USB management task while the bootloader is supposed to be running */ /* Run the USB management task while the bootloader is supposed to be running */
while (RunBootloader || WaitForExit) while (RunBootloader || WaitForExit)
......
...@@ -73,7 +73,7 @@ int main(void) ...@@ -73,7 +73,7 @@ int main(void)
SetupHardware(); SetupHardware();
/* Enable global interrupts so that the USB stack can function */ /* Enable global interrupts so that the USB stack can function */
sei(); GlobalInterruptEnable();
while (RunBootloader) while (RunBootloader)
USB_USBTask(); USB_USBTask();
......
...@@ -67,7 +67,7 @@ int main(void) ...@@ -67,7 +67,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -67,7 +67,7 @@ int main(void) ...@@ -67,7 +67,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -108,7 +108,7 @@ int main(void) ...@@ -108,7 +108,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -93,7 +93,7 @@ int main(void) ...@@ -93,7 +93,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -69,7 +69,7 @@ int main(void) ...@@ -69,7 +69,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -70,7 +70,7 @@ int main(void) ...@@ -70,7 +70,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -93,7 +93,7 @@ int main(void) ...@@ -93,7 +93,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -68,7 +68,7 @@ int main(void) ...@@ -68,7 +68,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -85,7 +85,7 @@ int main(void) ...@@ -85,7 +85,7 @@ int main(void)
Webserver_Init(); Webserver_Init();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -83,7 +83,7 @@ int main(void) ...@@ -83,7 +83,7 @@ int main(void)
CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream); CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -108,7 +108,7 @@ int main(void) ...@@ -108,7 +108,7 @@ int main(void)
CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream); CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -98,7 +98,7 @@ int main(void) ...@@ -98,7 +98,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
...@@ -81,7 +81,7 @@ int main(void) ...@@ -81,7 +81,7 @@ int main(void)
SetupHardware(); SetupHardware();
LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);
sei(); GlobalInterruptEnable();
for (;;) for (;;)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment