Thread 中讨论的其他器件:BLE-STACK
工具/软件:
您好、
我试图让我的设备没有启动 BLE、直到此时有一个输入处于预置状态、我会激活它、并强制它激活。 我该怎么做?
我有这个函数、我必须在代码的开头使用它才能运行 BLE ...如何将其移动到代码的另一部分?
void BLE_createTask (void)
{
/*uart_init();
UartLog_init (UART_open (CONFIG_UART_0、NULL));*/
/*注册应用程序回调到在堆栈中提出的陷阱断言*/
RegisterAssertBack(AssertHandler);
/*更新堆栈的用户配置*/
user0Cfg.appServiceInfo->timerTickPeriod = Clock_tickPeriod;
user0Cfg.appServiceInfo->timerMaxMillisecond = iCall_getMaxMSecs();
/*初始化 iCall 模块*/
iCall_init();
/*启动外部映像的任务 — 优先级 5 */
iCall_createRemoteTasks ();
Task_Params bleTaskParams;
/*配置 BLE 任务*/
Task_Params_初始化 (&bleTaskParams);
bleTaskParams.stack = bleTaskStack;
bleTaskParams.STACKSIZE = BLE_TASK_STACK_SIZE;
bleTaskParams.priority = BLE_TASK_priority;
bleTaskParams.arg0 = taskBLELOG;
task_construct (&bleTask、BLE_taskFxn、&bleTaskParams、NULL);
}
谢谢!