Compare commits
3 Commits
rei/develo
...
timer-task
Author | SHA1 | Date |
---|---|---|
Jean-François Milants | f9e0e443b8 | |
Jean-François Milants | a02a35ffdb | |
Jean-François Milants | 880f5fc3d7 |
|
@ -93,7 +93,7 @@
|
|||
|
||||
/* Software timer definitions. */
|
||||
#define configUSE_TIMERS 1
|
||||
#define configTIMER_TASK_PRIORITY (0)
|
||||
#define configTIMER_TASK_PRIORITY (1)
|
||||
#define configTIMER_QUEUE_LENGTH 32
|
||||
#define configTIMER_TASK_STACK_DEPTH (300)
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@ int GAPEventCallback(struct ble_gap_event* event, void* arg) {
|
|||
|
||||
void NimbleController::Init() {
|
||||
while (!ble_hs_synced()) {
|
||||
vTaskDelay(10);
|
||||
}
|
||||
|
||||
nptr = this;
|
||||
|
|
|
@ -38,7 +38,7 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
|
|||
* since it has compatible prototype.
|
||||
*/
|
||||
xTaskCreate(nimble_port_ll_task_func, "ll", configMINIMAL_STACK_SIZE + 200,
|
||||
NULL, configMAX_PRIORITIES - 1, &ll_task_h);
|
||||
NULL, 2, &ll_task_h);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -47,5 +47,5 @@ nimble_port_freertos_init(TaskFunction_t host_task_fn)
|
|||
* default queue it is just easier to make separate task which does this.
|
||||
*/
|
||||
xTaskCreate(host_task_fn, "ble", configMINIMAL_STACK_SIZE + 600,
|
||||
NULL, tskIDLE_PRIORITY + 1, &host_task_h);
|
||||
NULL, 1, &host_task_h);
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ SystemTask::SystemTask(Drivers::SpiMaster& spi,
|
|||
|
||||
void SystemTask::Start() {
|
||||
systemTasksMsgQueue = xQueueCreate(10, 1);
|
||||
if (pdPASS != xTaskCreate(SystemTask::Process, "MAIN", 350, this, 0, &taskHandle)) {
|
||||
if (pdPASS != xTaskCreate(SystemTask::Process, "MAIN", 350, this, 1, &taskHandle)) {
|
||||
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue