Add test application for FreeRTOS simulation
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>devin/1740502756-add-freertos-fullstack-example
parent
3e74bebd17
commit
948f86a844
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue