resolving makro errors

master
polymurph 2 years ago
parent 1d36ae2336
commit 104eefab3f

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

Loading…
Cancel
Save