本帖最后由 itelectron 于 2014-7-20 07:31 编辑
changeRegBits(reg, mask) (reg ^= (mask))
#define Flash_Busy(Block) ((bool)( (getRegBit(FMUSTAT,CCIF)) ? (changeRegBits(FMCR, 3), ((getRegBit(FMUSTAT,CCIF)) ? (changeRegBits(FMCR, 3), FALSE) : (changeRegBits(FMCR, 3), TRUE))) : (TRUE)))
|