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.

[参考译文] CCS/CC2650MODA:CC2650MODA

Guru**** 2560270 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/834461/ccs-cc2650moda-cc2650moda

器件型号:CC2650MODA

工具/软件:Code Composer Studio

您好!

  在下面的程序中没有错误、但是输出引脚(DIO2)不是高电平。 没有输出的原因是什么?

(在第一个注释行中)是否可以直接在 CCS 中将值写入硬件寄存器? 如果是、我们如何才能做到?

#include
#include
int main (空)

// IOCFG1 = 0x30;--- (1)

// IOCPortConfigureSet (IOID_2、IOC_PORT_GPIO、IOC_STD_OUTPUT);

IOCPinTypeGpioOutput (IOID_2);
GPIO_writeDio (2、1);

BIOS_start();

返回0;