Add RTOS task to test
This commit is contained in:
@@ -19,7 +19,16 @@
|
||||
|
||||
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");
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user