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/CC2650DK:使用 ICallPlatform_pwrRegisterNotify 的正确方法

Guru**** 2560390 points
Other Parts Discussed in Thread: BLE-STACK

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/572034/rtos-cc2650dk-proper-way-to-use-icallplatform_pwrregisternotify

器件型号:CC2650DK

工具/软件:TI-RTOS

您好!

我喜欢在系统进入 PowerCC26XX_awarn_standby、PowerCC26XX_entering_standby 等时收到通知 我在 iCall_cc265.c 中看到函数 ICallPlatform_pwrRegisterNotify (iCall_PwrRegisterNotifyArgs * args)。 我应该在何处调用此函数、以及如何在 args 中设置数据?

BTW、对于运行 HostTest 的 BLE-Stack 2.1.1、ICallPlatform_pwrRegisterNotify 在 osalInitTasks 期间在 LL_Init 中自动调用、我可以看到 ICallPlatform_pwrNotify 被调用。  但是、BLE-Stack 2.2.1的情况并非如此。

谢谢、Danny

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

    在 TI RTOS 版本2.15之后、电源管理模块已从内核迁移到需要进行一些配置和 API 更改的器件驱动程序。 有关使用 TI RTOS 2_20的 BLE-SDK2.2.1的必要更改、请参阅以下 wiki

    processors.wiki.ti.com/.../TI-RTOS_Migration_2_15

    此外,《RTOS 2.20电源管理用户指南》的第4.3节提供了一个 SPI 驱动程序示例,其中显示了可用作参考的电源通知功能的用法
    www.ti.com/.../sprui18c.pdf

    希望这对您有所帮助、
    此致、
    Padmaja