rework task priorities

This commit is contained in:
cyberman54 2022-01-26 16:32:54 +01:00
parent af01537a95
commit dc427314a1
5 changed files with 18 additions and 18 deletions

View File

@ -305,7 +305,7 @@ esp_err_t lmic_init(void) {
"lmictask", // name of task
4096, // stack size of task
(void *)1, // parameter of the task
2, // priority of the task
8, // priority of the task
&lmicTask, // task handle
1); // CPU core
@ -314,7 +314,7 @@ esp_err_t lmic_init(void) {
"lorasendtask", // name of task
3072, // stack size of task
(void *)1, // parameter of the task
1, // priority of the task
2, // priority of the task
&lorasendTask, // task handle
1); // CPU core

View File

@ -27,15 +27,15 @@ licenses. Refer to LICENSE.txt file in repository for more details.
Task Core Prio Purpose
-------------------------------------------------------------------------------
ledloop* 0 3 blinks LEDs
ledloop* 0 1 blinks LEDs
spiloop# 0 2 reads/writes data on spi interface
lmictask* 1 2 MCCI LMiC LORAWAN stack
clockloop# 1 4 generates realtime telegrams for external clock
mqttloop# 1 2 reads/writes data on ETH interface
timesync_proc# 1 3 processes realtime time sync requests
irqhandler# 1 2 cyclic tasks (i.e. displayrefresh) triggered by
timers gpsloop* 1 1 reads data from GPS via serial or i2c
lorasendtask# 1 1 feeds data from lora sendqueue to lmcic
lmictask* 1 8 MCCI LMiC LORAWAN stack
clockloop# 1 6 generates realtime telegrams for external clock
mqttloop# 1 5 reads/writes data on ETH interface
timesync_proc# 1 7 processes realtime time sync requests
irqhandler# 1 4 cyclic tasks (i.e. displayrefresh) triggered by
gpsloop* 1 3 reads data from GPS via serial or i2c
lorasendtask# 1 2 feeds data from lora sendqueue to lmcic
rmcd_process# 1 1 Remote command interpreter loop
* spinning task
@ -242,7 +242,7 @@ void setup() {
"ledloop", // name of task
1024, // stack size of task
(void *)1, // parameter of the task
3, // priority of the task
1, // priority of the task
&ledLoopTask, // task handle
0); // CPU core
#endif
@ -328,7 +328,7 @@ void setup() {
"gpsloop", // name of task
4096, // stack size of task
(void *)1, // parameter of the task
1, // priority of the task
3, // priority of the task
&GpsTask, // task handle
1); // CPU core
}
@ -430,7 +430,7 @@ void setup() {
"irqhandler", // name of task
4096, // stack size of task
(void *)1, // parameter of the task
2, // priority of the task
4, // priority of the task
&irqHandlerTask, // task handle
1); // CPU core

View File

@ -37,7 +37,7 @@ esp_err_t mqtt_init(void) {
SEND_QUEUE_SIZE * PAYLOAD_BUFFER_SIZE);
ESP_LOGI(TAG, "Starting MQTTloop...");
xTaskCreatePinnedToCore(mqtt_client_task, "mqttloop", 4096, (void *)NULL, 1,
xTaskCreatePinnedToCore(mqtt_client_task, "mqttloop", 4096, (void *)NULL, 5,
&mqttTask, 1);
return ESP_OK;
}

View File

@ -253,7 +253,7 @@ void clock_init(void) {
"clockloop", // name of task
3072, // stack size of task
(void *)1, // task parameter
4, // priority of the task
6, // priority of the task
&ClockTask, // task handle
1); // CPU core

View File

@ -34,7 +34,7 @@ void timesync_init(void) {
"timesync_proc", // name of task
4096, // stack size of task
(void *)1, // task parameter
3, // priority of the task
7, // priority of the task
&timeSyncProcTask, // task handle
1); // CPU core
}