#define RAM_BASE 0x20000000 #define RAM_BB_BASE 0x22000000 #define DEV_BASE 0x40000000 #define DEV_BB_BASE 0x42000000 #define Var_XORBit_BB(VarAddr, BitNumber) (*(vu32 *)(RAM_BB_BASE|((VarAddr - RAM_BASE)<<5)|((BitNumber)<<2))^= 1) #define Var_ResBit_BB(VarAddr, BitNumber) (*(vu32 *)(RAM_BB_BASE|((VarAddr - RAM_BASE)<<5)|((BitNumber)<<2)) = 0) #define Var_SetBit_BB(VarAddr, BitNumber) (*(vu32 *)(RAM_BB_BASE|((VarAddr - RAM_BASE)<<5)|((BitNumber)<<2)) = 1) #define Var_GetBit_BB(VarAddr, BitNumber) (*(vu32 *)(RAM_BB_BASE|((VarAddr - RAM_BASE)<<5)|((BitNumber)<<2))) #define Dev_XORBit_BB(DevAddr, BitNumber) (*(vu32 *)(DEV_BB_BASE|((DevAddr - DEV_BASE)<<5)|((BitNumber)<<2))^= 1) #define Dev_ResBit_BB(DevAddr, BitNumber) (*(vu32 *)(DEV_BB_BASE|((DevAddr - DEV_BASE)<<5)|((BitNumber)<<2)) = 0) #define Dev_SetBit_BB(DevAddr, BitNumber) (*(vu32 *)(DEV_BB_BASE|((DevAddr - DEV_BASE)<<5)|((BitNumber)<<2)) = 1) #define Dev_GetBit_BB(DevAddr, BitNumber) (*(vu32 *)(DEV_BB_BASE|((DevAddr - DEV_BASE)<<5)|((BitNumber)<<2)))
#define TIM_IT_Update_Bit 0
if (Dev_GetBit_BB(((u32)&(TIM3->SR)),TIM_IT_Update_Bit)
|