sourcecode
sourcecode
h>
#include "FreeRTOS.h"
#include "task.h"
// Task 1 function
while (1) {
fflush(stdout);
// Task 2 function
while (1) {
fflush(stdout);
int main(void) {
// Create Task 1
xTaskCreate(
vTask1, // Function that implements the task
3, // Priority
// Create Task 2
xTaskCreate(
vTask2,
"Task2",
100,
NULL,
1,
NULL);
vTaskStartScheduler();
for (;;);
return 0;