RedHawk f85bf8ef8d FreeRTOS: Removed FreeRTOSCPP and fixed build.
*Rewritten Master class to create C-style FreeRTOS task.
2023-04-24 20:49:41 +03:00

21 lines
461 B
C++

#include "chip.h"
#include "board.h"
#include "FreeRTOS.h"
#include "task.h"
#include <cr_section_macros.h>
#include "Master.h"
int main(void)
{
SystemCoreClockUpdate();
Board_Init();
// Create a task before starting the scheduler.
Master master("Master", configMINIMAL_STACK_SIZE * 10, nullptr, tskIDLE_PRIORITY + 1UL);
// Start the real time kernel with preemption.
//FreeRTOS::Kernel::startScheduler();
vTaskStartScheduler ();
return 1;
}