can_wizard/main/main.c

26 lines
720 B
C
Raw Normal View History

2023-11-22 11:48:03 +00:00
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
2024-02-22 20:47:16 +00:00
// #include "can.h"
// #include "fs.h"
// #include "console.h"
// #include "xvprintf.h"
2023-11-22 11:48:03 +00:00
2023-11-24 05:43:28 +00:00
2023-11-22 11:48:03 +00:00
void app_main(void) {
2024-02-22 20:47:16 +00:00
printf("Hello world!\n");
// init_tx_ringbuf();
// xTaskCreate(can_task, "can task", 4800, NULL, CONFIG_CAN_TASK_PRIORITY, NULL);
// initialize_filesystem();
// initialize_console();
// xTaskCreate(console_task_interactive, "console tsk int", 8000, NULL, CONFIG_CONSOLE_INT_PRIORITY, NULL);
for (int i = 10; i >= 0; i--) {
printf("Restarting in %d seconds...\n", i);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
printf("Restarting now.\n");
fflush(stdout);
esp_restart();
2023-11-22 11:48:03 +00:00
}