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.

[参考译文] TIDC-CC2540-BLE-USB:HalKeyConfig 函数

Guru**** 2545740 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/638751/tidc-cc2540-ble-usb-halkeyconfig-function

器件型号:TIDC-CC2540-BLE-USB

尝试在  USB 软件狗的 HAL_KEY_SW_1的下降沿实施中断后、我必须按2次按钮才能获取中断调用。

在尝试解决此问题后、我发现 了函数 Hal_key.c 中 USB2540USB 的函数 HalKeyConfig()中的 PICTL 中断设置为

PICTL |= 0x01;

不应该在那里

PICTL |= 0x02;

hal_key.c 来自 ble stack 1.4.2.2

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

    你是对的、感谢您指出它。 P1上的按钮、这意味着 PICTL 的位1应该被置位。

    祝你一切顺利