fsfw/osal/FreeRTOS/main.cpp

32 lines
449 B
C++
Raw Normal View History

2018-07-13 15:56:37 +02:00
//entry point into "bsp"
void init(void);
#include <FreeRTOS.h>
#include <FreeRTOSConfig.h>
#include "task.h"
void initTask(void *parameters) {
init();
}
int main(void) {
if ( pdPASS
!= xTaskCreate(initTask, "init", 512, NULL,
configMAX_PRIORITIES - 1, NULL)) {
//print_uart0("Could not create task1\r\n");
}
vTaskStartScheduler();
//Scheduler should never return
//print_uart0("This is bad\n");
for (;;)
;
return 0;
}