ZYNQ连载04-Vitis创建FreeRTOS工程
1. 创建工程
2. 测试程序
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
static TaskHandle_t task1_handle = NULL;
static void task1(void *pvParameters)
{
while(1)
{
print("Hello World\n\r");
vTaskDelay(100);
}
}
int main()
{
xTaskCreate(task1,
"task1",
512,
NULL,
4,
&task1_handle);
vTaskStartScheduler();
while (1) {
vTaskDelay(100);
}
return 0;
}