请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC3220SF 您好、支持团队、
我们的产品使用 CC3220SF SoC。 SimpleLink-SDK 版本:simplelink_cc32xx_sdk_4_30_00_06。 使用 TI-RTOS。
我的问题:
- 我可以直接读取/写入寄存器值吗? 如何操作?
此致、
Lishen
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.
您好、Lishen、
写入寄存器是指写入存储器的确切区域。 读数相同。 您不应期望这里有任何"魔法"。
例如、您可以使用来自 hw_types.h 的宏 HWREG (x)
#include "ti/devices/cc32xx/inc/hw_types.h" HWREG(I2CA0_BASE + I2C_O_MTPR) = 2;
但是、在读取/写入外设寄存器之前、需要启用外设时钟。 如果您不这样做、您将看到硬故障。
1月