Other Parts Discussed in Thread: BLE-STACK
Tool/software: Code Composer Studio
Hey, 
I want to call "linkDB_NumActive()" in my BLE Task to check how many connections are active. But the function is defined with icall_directAPI(...). In the function the threadtype is checked an beacuse its SWI it is called ICALL_abort wht will get in to an endless loop. So my question is: 
Why is threadtype SWI and not Task ? 
Her is my Task creation:
void SimplePeripheral_createTask(void)
{
  Task_Params taskParams;
  // Configure task
  Task_Params_init(&taskParams);
  taskParams.stack = spTaskStack;
  taskParams.stackSize = SP_TASK_STACK_SIZE;
  taskParams.priority = SP_TASK_PRIORITY;
  Task_construct(&spTask, SimplePeripheral_taskFxn, &taskParams, NULL);
}
Any mistakes ? Or want should i change "linkDB_NumActive()" without ending up in an endless loop ?