2023-11-22 11:48:03 +00:00
|
|
|
#include <stdio.h>
|
2023-11-24 03:49:17 +00:00
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/task.h"
|
2023-11-22 11:48:03 +00:00
|
|
|
#include "can.h"
|
|
|
|
#include "fs.h"
|
2023-11-24 03:49:17 +00:00
|
|
|
#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) {
|
2023-11-24 03:49:17 +00:00
|
|
|
init_tx_ringbuf();
|
2023-11-24 13:22:22 +00:00
|
|
|
xTaskCreate(can_task, "can task", 4800, NULL, CONFIG_CAN_TASK_PRIORITY, NULL);
|
2023-11-22 11:48:03 +00:00
|
|
|
initialize_filesystem();
|
|
|
|
initialize_console();
|
2023-11-24 13:22:22 +00:00
|
|
|
xTaskCreate(console_task_interactive, "console tsk int", 8000, NULL, CONFIG_CONSOLE_INT_PRIORITY, NULL);
|
2023-11-22 11:48:03 +00:00
|
|
|
}
|