CC1352R: Start BLE in the middle of the code

Part Number: CC1352R
Other Parts Discussed in Thread: BLE-STACK

Tool/software:

Hi,

I am trying tohave my device without the BLE started until an input is pressedm at this moment I would activate it, and mantain it activated. How could I do this??

I have this function, and I have to use it at the beginning of the code in order to have the BLE running...how could I move it to another part of the code??

void BLE_createTask(void)
{
    /*UART_init();
    UartLog_init(UART_open(CONFIG_UART_0, NULL));*/


    /* Register Application callback to trap asserts raised in the Stack */
    RegisterAssertCback(AssertHandler);

    /* Update User Configuration of the stack */
    user0Cfg.appServiceInfo->timerTickPeriod = Clock_tickPeriod;
    user0Cfg.appServiceInfo->timerMaxMillisecond = ICall_getMaxMSecs();
    /* Initialize ICall module */
    ICall_init();
    /* Start tasks of external images - Priority 5 */
    ICall_createRemoteTasks();
    Task_Params bleTaskParams;
    /* Configure BLE Task */
    Task_Params_init(&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);
}

Thanks!