|
| 1 | +#ifdef NO_SCREEN |
| 2 | +#include "Tasks/screen_pcd8544/screen_pcd8544.h" |
| 3 | +#include "driver/spi_common.h" |
| 4 | +#endif |
| 5 | + |
1 | 6 | #include <stdio.h> |
2 | 7 | #include <stdlib.h> |
3 | 8 |
|
4 | | -#include "Tasks/core/blinker.task.h" |
5 | 9 | #include "Tasks/core/calcRideParamsOnISR.task.h" |
6 | 10 | #include "Tasks/core/rideStatusWatchdog.task.h" |
7 | | -#include "Tasks/screen_pcd8544/screen_pcd8544.h" |
8 | 11 | #include "Tasks/storage/spiffs_main.h" |
9 | 12 | #include "Tasks/sync/obc_rest.task.h" |
10 | 13 | #include "Tasks/sync/sntp.task.h" |
11 | 14 | #include "driver/gpio.h" |
12 | | -#include "driver/spi_common.h" |
13 | 15 | #include "esp_event_base.h" |
14 | 16 | #include "esp_log.h" |
15 | 17 | #include "esp_system.h" |
@@ -59,7 +61,6 @@ static void IRAM_ATTR vReedISR(void* arg) { |
59 | 61 |
|
60 | 62 | void vInitTasks() { |
61 | 63 | xTaskCreate(&vCalcRideParamsOnISRTask, "vCalcRideParamsOnISRTask", 2048, NULL, 6, NULL); |
62 | | - xTaskCreate(&vBlinkerTask, "vBlinkerTask", 2048, NULL, 5, NULL); |
63 | 64 | xTaskCreate(&vRideStatusWatchdogTask, "vRideStatusIntervalCheckTask", 2048, NULL, 3, NULL); |
64 | 65 | xTaskCreate(&vSntpSyncTask, "vSntpSyncTask", 4096, NULL, 3, NULL); |
65 | 66 | vRegisterServerSyncTask(); |
@@ -105,9 +106,11 @@ void app_main() { |
105 | 106 |
|
106 | 107 | vInitNVS(); |
107 | 108 | vInitSpiffs(); |
108 | | - vInitPcd8544Screen(); |
109 | 109 | vAttachInterrupts(); |
110 | 110 | vInitTasks(); |
| 111 | +#ifndef NO_SCREEN |
| 112 | + vInitPcd8544Screen(); |
| 113 | +#endif |
111 | 114 |
|
112 | 115 | ESP_ERROR_CHECK(esp_event_handler_register_with(obc_events_loop, OBC_EVENTS, ESP_EVENT_ANY_ID, testHandler, obc_events_loop)); |
113 | 116 | ESP_LOGI(TAG, "Startup complete"); |
|
0 commit comments