Add test application for FreeRTOS simulation

Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
devin/1740502756-add-freertos-fullstack-example
Devin AI 2025-02-21 13:00:03 +00:00
parent 3e74bebd17
commit 948f86a844
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
static void testTask(void* pvParameters) {
const TickType_t xDelay = 1000 / portTICK_PERIOD_MS;
for(;;) {
printf("FreeRTOS Test Task Running\n");
vTaskDelay(xDelay);
}
}
int main(void) {
printf("Starting FreeRTOS simulation...\n");
/* Create the test task */
xTaskCreate(testTask, "TestTask", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL);
/* Start the scheduler */
vTaskStartScheduler();
/* Should never reach here */
return 0;
}