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.

[参考译文] 编译器/CC2650:I2C 引脚配置

Guru**** 2606725 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/858249/compiler-cc2650-i2c-pin-configuration

器件型号:CC2650

工具/软件:TI C/C++编译器

大家好、

我们将蓝牙堆栈2.2版开发环境用于 CC2650。  

我们目前使用引脚 DIO_12和 DIO_13作为 SDA 和 SCL。

我们希望使用 DIO_5和 DIO_6作为 SDA 和 SCL。

如何为 I2C 配置和使用此引脚?

此致、

Ankita Tayade

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

    Ankita、您好!  

    您可以查看中的文件 /src/boards ,这是定义引脚定义和驱动程序硬件属性的位置。

    中配置了 I2C 的 SDA 和 SCL 引脚 _LAUNCHXL.c、您可以在  相应的头文件中找到引脚定义 Board_I2C0_SDA0和 Board_I2C0_SCL0  _LAUNCHXL.h

    此致、

    Vetle