#define BITBAND(addr, bitnum) ((addr & 0xF0000000)+0x2000000+((addr &0xFFFFF)<<5)+(bitnum<<2))
#define MEM_ADDR(addr) *((vola
tile unsigned long *)(addr))
#define BIT_ADDR(addr, bitnum) MEM_ADDR(BITBAND(addr, bitnum))
#define PCout(n) BIT_ADDR(GPIOC_ODR_Addr,n)
就是上面这几个宏定义,实在是搞不懂了,请大家帮我看看
一周热门 更多>