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.

[参考译文] 编译器/CC2541:不添加 HA_i2c 文件

Guru**** 2553260 points
Other Parts Discussed in Thread: CC2541, BLE-STACK, REMOTI

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/564619/compiler-cc2541-ha_i2c-files-are-not-being-added

器件型号:CC2541
Thread 中讨论的其他器件: BLE-STACKRemoTI

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

您好!
我们正在努力将 i2c 存储器器件连接到 CC2541、我们在 Thread 中提供了一些相关的参考文件、

但是、此 hal_i2c 文件中描述的函数与文档中"HAL 驱动程序 API" pdf 文件中描述的函数不同、即使在工作区中添加 hal_i2c.h 和 hal_i2c.c 文件后、i2c 初始化函数也会显示错误。


 

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

    链接的线程中的文件用于不同的器件。 请参阅 BLE-STACK 1.4.2 SDK 中提供的 hal_i2c.h 和 hal_i2c.c 文件。 可在 C:\Texas Instruments\BLE-CC254x-1.4.2.2\Components\hal\target 下找到它们。 此外、请注意、您提到的 pdf 文件中的 i2c 服务声明它仅限于 RemoTI 平台。

    -弥敦