Hi there,
one can use freertos on esp32 with c-code as well as with cpp.
To see the slight differences in the code, please find attached a simple blink example for both.
Each example runs two tasks, each task blinks an led.
One can use them as a beginning programming in cpp or c using freertos.
The file originate from this discussion here:
viewtopic.php?f=2&t=1591
@espressif: If you find these examples useful, feel free to add them to your examples at esp-idf on github.
Have fun
DL88AI88
FreeRtos: cpp and c - blink examples
FreeRtos: cpp and c - blink examples
- Attachments
-
- blink.c.zip
- (940 Bytes) Downloaded 736 times
-
- cppblink.cpp.zip
- (1009 Bytes) Downloaded 784 times
Who is online
Users browsing this forum: No registered users and 12 guests