21 lines
378 B
C++
21 lines
378 B
C++
#include "chip.h"
|
|
#include "board.h"
|
|
#include "FreeRTOS.h"
|
|
#include "task.h"
|
|
#include <cr_section_macros.h>
|
|
#include "Kernel.hpp"
|
|
#include "Master.h"
|
|
|
|
int main(void)
|
|
{
|
|
SystemCoreClockUpdate();
|
|
Board_Init();
|
|
// Create a task before starting the kernel.
|
|
Master master;
|
|
|
|
// Start the real time kernel with preemption.
|
|
FreeRTOS::Kernel::startScheduler();
|
|
|
|
return 1;
|
|
}
|