projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update UC3 platform driver support to use the bitmasks defined in the header files...
[pub/USBasp.git]
/
LUFA
/
Scheduler
/
Scheduler.c
diff --git
a/LUFA/Scheduler/Scheduler.c
b/LUFA/Scheduler/Scheduler.c
index
4e71d4d
..
56e1cf4
100644
(file)
--- a/
LUFA/Scheduler/Scheduler.c
+++ b/
LUFA/Scheduler/Scheduler.c
@@
-39,10
+39,12
@@
bool Scheduler_HasDelayElapsed(const uint_least16_t Delay,
SchedulerDelayCounter_t CurrentTickValue_LCL;
SchedulerDelayCounter_t DelayCounter_LCL;
SchedulerDelayCounter_t CurrentTickValue_LCL;
SchedulerDelayCounter_t DelayCounter_LCL;
- ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
- {
- CurrentTickValue_LCL = Scheduler_TickCounter;
- }
+ uint_reg_t CurrentGlobalInt = GetGlobalInterruptMask();
+ GlobalInterruptDisable();
+
+ CurrentTickValue_LCL = Scheduler_TickCounter;
+
+ SetGlobalInterruptMask(CurrentGlobalInt);
DelayCounter_LCL = *DelayCounter;
DelayCounter_LCL = *DelayCounter;