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.

[参考译文] RTOS/CC2640:cc2640 ble stack 传感器标签

Guru**** 2573695 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/590072/rtos-cc2640-cc2640-ble-stack-sensor-tag

器件型号:CC2640

工具/软件:TI-RTOS

I2C 设置中对信标机械模式的需求是什么? 我是否可以知道为什么这里会给出信标?
void bspI2cInit (void)

Semaphore_Params semParamsMutex;

//创建保护信标
Semaphore_Params_init (&semParamsMutex);
SemParametersMutex.mode = Semaphore_Mode_binary;
Semaphore_construction (&mutex、1、&semParamsMutex);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    它被用作一个互斥体来提供到 I2C 资源的独占访问。 我建议查看文件中用于进一步进行底层说明的源代码。

    祝你一切顺利