#define HWREG_BP(x) \
__byte_peripheral_32((uint32_t *)(x))
#define HWREGB(x) \
__byte((int16_t *)(x),0)
函数__byte_peripheral_32((uint32_t *)(x))
函数__byte((int16_t *)(x),0)
这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.
#define HWREG_BP(x) \
__byte_peripheral_32((uint32_t *)(x))
#define HWREGB(x) \
__byte((int16_t *)(x),0)
函数__byte_peripheral_32((uint32_t *)(x))
函数__byte((int16_t *)(x),0)
这2个函数的作用是啥?找不到任何解释?找不到任何说明?
感谢您对TI产品的关注!
HWREG_BP(x)是另一个用于32位访问的宏。
HWREGB(x)用于使用__byte()内在过程的8位访问。
详细请参考这个tech report的page28有说明。
www.ti.com/.../spraa85e.pdf
下面这个帖子也讨论了这个问题,请参考。
e2e.ti.com/.../2118570
谢谢!