resolving makro errors

master
polymurph 2 years ago
parent 9bc587c0f2
commit 3c95c4c91f

@ -5,14 +5,14 @@
#define HANDLE_INT_FLAG(flagReg, flagMask, intType) \
// do{ ... }while(1) is used to insure that this makro acts as a function call
do { \
do {\
// check if flag is set
if ((flagReg) & (flagMask)) { \
if ((flagReg) & (flagMask)) {\
// clear flag
(flagReg) &= ~(flagMask); \
(flagReg) &= ~(flagMask);\
// indext to corresponding handler and execute
((intHandler_t)(intHandlerList[intType]))(); \
} \
((intHandler_t)(intHandlerList[intType]))();\
}\
} while (0)
void timerReset(timerNo_t timer)

Loading…
Cancel
Save