Add RTOS task to test

This commit is contained in:
maddiebaka
2025-11-17 13:25:36 -05:00
parent b5c5b65d79
commit fd17b7daff

View File

@@ -19,7 +19,16 @@
static const char *TAG = "spincoat-plater-firmware"; static const char *TAG = "spincoat-plater-firmware";
void app_main(void) void v_echo_task_func(void *pvParameters) {
TickType_t frequency = 5000 / portTICK_PERIOD_MS; // 5000 ms
TickType_t last_wake_time = xTaskGetTickCount();
while(1) {
printf("Hello from vEchoTaskFunction()\n");
vTaskDelayUntil(&last_wake_time, frequency);
}
}
void init_rmt_esc_tx(void)
{ {
ESP_LOGI(TAG, "Create RMT TX channel"); ESP_LOGI(TAG, "Create RMT TX channel");
rmt_channel_handle_t esc_chan = NULL; rmt_channel_handle_t esc_chan = NULL;
@@ -69,3 +78,7 @@ void app_main(void)
// } // }
} }
void app_main(void) {
xTaskCreate(&v_echo_task_func, "v_echo_task_func", 2048, NULL, 5, NULL);
}