在进行CC2640开发的时候,很多时候需要使用到系统重启,下面给出我在TI官方代码中找到的重启函数
SysCtrlSystemReset();
但是该函数使用时需要以下头文件
#include <ti/devices/DeviceFamily.h>
#include DeviceFamily_constructPath(driverlib/sys_ctrl.h)
如果包含了以下头文件,依然报错的话,建议这样做
The following pre-processor include paths should be added to the project.
(Project → Properties → ARM Compiler → Include Options)
<SimpleLink SDK>/source/ti
<SimpleLink SDK>/source/ti/ble5stack
如果还是不成功,建议参考你所使用的开发板对应的OAD升级例程,
在OAD升级成功以后,系统会进行重启,寻找到该重启函数即可!