以下的定义是飞思卡尔的原文件里的,但是由于C语言学的不精通. 所以请老师们指点一下,这是什么意思??? #define setReg8Bit(RegName, BitName) (RegName |= RegName##_##BitName##_##MASK) #define clrReg8Bit(RegName, BitName) (RegName &= ~RegName##_##BitName##_##MASK) #define invertReg8Bit(RegName, BitName) (RegName ^= RegName##_##BitName##_##MASK) #define testReg8Bit(RegName, BitName) (RegName & RegName##_##BitName##_##MASK) /* Whole peripheral register access macros */ #define setReg8(RegName, val) (RegName = (byte)(val)) #define getReg8(RegName) (RegName) (void)SPI1S; /* Read the status register */ (void)SPI1D; /* Read the device register */ |