在IAR里面,有如下定义的宏:
(1) #define HAL_IO_SET(port, pin, val) HAL_IO_SET_PREP(port, pin, val)
(2) #define HAL_IO_SET_PREP(port, pin, val) st( P##port##_##pin## = val; )
为什么我直接使用(2)就报错呢?
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.