feat: Draft architecture for incp hub
This commit is contained in:
22
app/src/main.c
Normal file
22
app/src/main.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "main.h"
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
|
||||
#include "tasks/heartbeat_task.h"
|
||||
#include "incphub/incphub_task.h"
|
||||
|
||||
int my_main()
|
||||
{
|
||||
// Init
|
||||
incphub_task_preinit();
|
||||
|
||||
// Create tasks
|
||||
xTaskCreateStatic(heartbeat_task_main, "heartbeat", HEARTBEAT_TASK_STACK_DEPTH, NULL, HEARTBEAT_TASK_PRIORITY, _heartbeat_task_stack, &_heartbeat_task);
|
||||
xTaskCreateStatic(incphub_task_main, "incphub", INCPHUB_TASK_STACK_DEPTH, NULL, INCPHUB_TASK_PRIORITY, _incphub_task_stack, &_incphub_task);
|
||||
|
||||
// Run
|
||||
vTaskStartScheduler();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user