diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-04-08 05:40:25 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-04-08 05:40:25 +0000 |
| commit | 6384d33171686c06698b5d34562245a290d44f62 (patch) | |
| tree | a899d943856b48f6889cf1fe9f5b97ccc58ca598 /LUFA/Scheduler/Scheduler.c | |
| parent | 5f7811e9d902b03c6af11f2820cf11b9c0bac154 (diff) | |
Move global interrupt enable/disable functions out to Common.h and document them.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1731 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Scheduler/Scheduler.c')
| -rw-r--r-- | LUFA/Scheduler/Scheduler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Scheduler/Scheduler.c b/LUFA/Scheduler/Scheduler.c index 87a21491..56e1cf41 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; |
