-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtos_tasks.ino
62 lines (51 loc) · 1023 Bytes
/
rtos_tasks.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
void start_RTOS_tasks()
{
if (WIFI_enabled)
{
xTaskCreatePinnedToCore(v_Wifi_connection,
"WIFI_CONNECTION",
4096,
NULL,
2, //Priority
NULL,
1);
xTaskCreatePinnedToCore(v_send_data,
"SEND_DATA",
4096,
NULL,
2, //Priority
NULL,
1);
}
// Start ready for deep sleep
xTaskCreatePinnedToCore(vTestForDeepSleep,
"SLEEP_TEST",
4096,
NULL,
2, //Priority
NULL,
1);
// Start air quality, temperature, hunidity read task
xTaskCreatePinnedToCore(vReadAirQuality,
"AIR_QUALITY",
4096,
NULL,
3, //Priority
NULL,
1);
// Start OLED task
xTaskCreatePinnedToCore(v_updateTheDisplay,
"OLED",
8192,
NULL,
2, //Priority
NULL,
1);
xTaskCreatePinnedToCore(v_ReadBatteryVoltage,
"BATTERY",
2048,
NULL,
2, //Priority
NULL,
1);
}