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.

[参考译文] CC2540:如何使用 IAR for CC2540将从 BLE1.3写入的代码移植到 BLE 1.4

Guru**** 2553450 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/627487/cc2540-how-to-port-code-written-from-ble1-3-to-ble-1-4-using-iar-for-cc2540

器件型号:CC2540

我有疑问。 我使用 BLE 1.3堆栈和 IAR 8.10.3编写了一个代码。 如果我使用 IAR 8.10.3或 IAR 8.20来编译和下载、没有问题。  

但是、当我将外设、中央和配置文件代码复制到 BLE1.4并使用 IAR 8.20时、弹出一个错误、如下所示。

ERROR[PE165]:函数调用 C:\Texas Instruments\BLE-CC254x-1.4.0\projects\ble\Profiles\Roles\peripheral.c 662中的参数太少

这里提到了位于 peripheral.c 中的" return (GAP_TerminateLinkReq (gapRole_TaskID、gapRole_ConnectionHandle);"

我的问题是、将代码从 BLE1.3移植到 BLE 1.4 (BLE 堆栈的更高版本)的一般过程是什么?  

提前感谢!

bStatus_t GAPRole_TerminateConnection( void )
{
if ( gapRole_state == GAPROLE_Connected )
{
返回( GAP_TerminateLinkReq( gapRole_TaskID、gapRole_ConnectionHandle )));
}
否则
{
返回(bleIncorrectMode);
}
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好 Bin、

    请参阅 BLE Wiki (CC254x 部分)上的"移植指南和已知问题"文章。

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