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.

[参考译文] CC2640:如何在读取 RTC 寄存器时禁用中断

Guru**** 2587365 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/597125/cc2640-how-to-disable-interrupts-when-reading-rtc-registers

器件型号:CC2640

您好!

我的客户希望获取"SEC 寄存器" 和"subsec 寄存器"的32位值。
在这种情况下、我认识到他们应该使用这些函数。
 ・AONRTSecGet ()
 ・AONRTCFractionGet ()

但是 、在 CC26xx 驱动程序库中、我找到了以下说明。
"必须禁用中断、以确保以原子方式执行这些操作。"

如何禁止中断?
如果我可以参考示例代码、请告诉我。


CC26xx 驱动程序库
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/2_14_02_22/exports/tirtos_full_2_14_02_22/products/cc26xxware_2_21_03_15980/doc/driverlib/group__aonrtc__api.html#ga139caabd8d9d9b3f5a86b043fb6263a3


此致、
Miyashiro

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

    您可以使用 Hwi_disable/Hwi_restore 来禁用/恢复中断。

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

    您好、JXS、

    我理解您的答案。
    我可以确认在某些外设驱动程序代码中使用了"Hwi_disable/Hwi_restore"。
    感谢您的快速 回答。

    此致、
    Miyashiro