Suppose you have following main.c and it works properly
#include <stdio.h> // prototype declarations for I/O functions #include "uart.h" int main (void) { vUartInit(); printf ("Hello World\n"); for (;;); }
and you want to make minimalistic FreeRTOS example on your processor.
You will need to do following.
/* Standard includes */ #include <stdio.h> // prototype declarations for I/O functions /* Driver includes */ #include "uart.h" /* Scheduler includes */ #include "FreeRTOS.h" #include "task.h" void prvTaskA (void* pvParameters) { (void) pvParameters; // Just to stop compiler warnings. for (;;) { vTaskDelay(500); printf("Task A\n"); vTaskDelay(500); } } void prvTaskB (void* pvParameters) { (void) pvParameters; // Just to stop compiler warnings. for (;;) { printf("Task B\n"); vTaskDelay(1000); } } int main (void) { vUartInit(); xTaskCreate( prvTaskA, ( signed char * ) "TaskA", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL ); xTaskCreate( prvTaskB, ( signed char * ) "TaskB", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL ); vTaskStartScheduler(); //should never get here printf("ERORR: vTaskStartScheduler returned!"); for (;;); }
rd@radekdostal.com
+43 681 815 945 10
skype: radekdostal
www.mimo-domov.cz - Czech and Slovak people abroad
What a data of un-ambiguity and preserveness of precious know-how about unexpected emotions.
Also visit my website - гороскоп скорпиона на 2022 год мужчина - http://partner1997.ru/tag/%D1%87%D1%82%D0%BE-%D0%B6%D0%B4%D0%B5%D1%82-%D1%81%D0%BA%D0%BE%D1%80%D0%BF%D0%B8%D0%BE%D0%BD%D0%B0-%D0%B2-2022/
Wow, this piece of writing is fastidious,
my sister is analyzing such things, so I am
going to inform her.
Here is my web site: оригинальная туалетная вода мужская Hugo Boss -
http://www.travelstandard.com/__media__/js/netsoltrademark.php?d=mockwa.com%2Fforum%2Fthread-121195%2F