大家好,我有个问题,我在BLE1.3 下用IAR 8.10.3 写了一个程序。然后我用 IAR 8.10.3 或者 IAR 8.20编译下载完全没有问题。
但是当我把我的peripheral, central 和profile 文件拷到 BLE 1.4目录下,用IAR 8.20 编译的时候,就报错了。
错误是:
Error[Pe165]: too few arguments in function call C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Profiles\Roles\peripheral.c 662
这里面指的代码是 这个函数的return 那行。这个函数是在peripheral.c中。
我的问题是 大概是怎样的一个思路如果我把代码从BLE1.3移植到BLE1.4当中呢?
bStatus_t GAPRole_TerminateConnection( void ) { if ( gapRole_state == GAPROLE_CONNECTED ) { return ( GAP_TerminateLinkReq( gapRole_TaskID, gapRole_ConnectionHandle ) ); } else { return ( bleIncorrectMode ); } }