resolved makro errors

master
polymurph 2 years ago
parent 104eefab3f
commit 5524efc144

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

Loading…
Cancel
Save