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.

主从机角色自动切换问题

Other Parts Discussed in Thread: CC2540, CC2541

我现在基于peripheral程序,把central部分的代码融合进从机程序,想实现一个模块能够主从机模式在一定时间内自动切换,现在遇到的问题是:peripheral程序用到的lib库是cc2540_BLE_peri.lib和cc254x_BLE_HCI_TL_None.lib; 如果我不把cc2540_BLE_cent.lib包含进来,程序中这样的函数GAP_EstablishLinkReq( &params );GAP_DeviceDiscoveryRequest( &params );都提示没有定义;  如果把cc2540_BLE_cent.lib加进去,编译的时候又提示Error[e6]: Program module ll_halt redeclared in file C:\Users\Desktop\BLE-CC254x-1.3\Projects\ble\Libraries\CC2540DB\ bin\CC2540_BLE_peri.lib  ,好像是ll_halt在库中重声明了;请问这个问题该如何解决?