aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Scheduler/Scheduler.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-04-08 05:40:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-04-08 05:40:25 +0000
commitc263ea837ae7e3c0e963b798afdffd501790ce2c (patch)
treea899d943856b48f6889cf1fe9f5b97ccc58ca598 /LUFA/Scheduler/Scheduler.c
parentde9bd767dc8578a45a195fb1e37dd4ff26ae9567 (diff)
downloadlufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.tar.gz
lufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.tar.bz2
lufa-c263ea837ae7e3c0e963b798afdffd501790ce2c.zip
Move global interrupt enable/disable functions out to Common.h and document them.
Diffstat (limited to 'LUFA/Scheduler/Scheduler.c')
-rw-r--r--LUFA/Scheduler/Scheduler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Scheduler/Scheduler.c b/LUFA/Scheduler/Scheduler.c
index 87a21491d..56e1cf41e 100644
--- a/LUFA/Scheduler/Scheduler.c
+++ b/LUFA/Scheduler/Scheduler.c
@@ -39,12 +39,12 @@ bool Scheduler_HasDelayElapsed(const uint_least16_t Delay,
SchedulerDelayCounter_t CurrentTickValue_LCL;
SchedulerDelayCounter_t DelayCounter_LCL;
- uint_reg_t CurrentGlobalInt = USB_INT_GetGlobalEnableState();
- USB_INT_GlobalDisable();
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();
+ GlobalInterruptDisable();
CurrentTickValue_LCL = Scheduler_TickCounter;
- USB_INT_SetGlobalEnableState(CurrentGlobalInt);
+ SetGlobalInterruptMask(CurrentGlobalInt);
DelayCounter_LCL = *DelayCounter;