Skip to content

Commit 948f86a

Browse files
Add test application for FreeRTOS simulation
Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
1 parent 3e74beb commit 948f86a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • fullstack/freertos-wolfip-wolfssl-https/src
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <stdio.h>
2+
#include "FreeRTOS.h"
3+
#include "task.h"
4+
5+
static void testTask(void* pvParameters) {
6+
const TickType_t xDelay = 1000 / portTICK_PERIOD_MS;
7+
8+
for(;;) {
9+
printf("FreeRTOS Test Task Running\n");
10+
vTaskDelay(xDelay);
11+
}
12+
}
13+
14+
int main(void) {
15+
printf("Starting FreeRTOS simulation...\n");
16+
17+
/* Create the test task */
18+
xTaskCreate(testTask, "TestTask", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL);
19+
20+
/* Start the scheduler */
21+
vTaskStartScheduler();
22+
23+
/* Should never reach here */
24+
return 0;
25+
}

0 commit comments

Comments
 (0)