IAR编程时,0x01为16进制表示,但如果直接用二进制怎么写?有什么前缀或是后缀?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
IAR仅仅支持10进制和16进制的数字表示。
如果需要用二进制描述,楼主可以按下面的方式自己定义一个宏文件:
#ifndef BINARY_H
#define BINARY_H
#define B00000000 (0x00)
#define B00000001 (0x01)
#define B00000010 (0x02)
...
#define B11111110 (0xFE)
#define B11111111 (0xFF)
#endif