Hi all,
I’m trying to learn FreeRTOS using an ESP32 and PlatformIO. I hope to be able to keep using Libraries written for the Arduino framework (some Adafruit stuff).
Here’s the relevant part of my platformio.ini:
[env:myesp]
platform = espressif32
board = az-delivery-devkit-v4
framework = arduino
I bought an online course, and the presenter simply uses FreeRTOS functions without importing anything other than Arduino.h
.
Apparently, somewhere in the bowels of (this particular?) Arduino library, FreeRTOS seems to be imported and initialized as well.
Strongly believing that explicit is better than implicit, this makes me nervous.
Will FreeRTOS always be available in this way? Will it be available on other platforms? (I’m hoping to use FreeRTOS on Teensy in the future as well.)
Importing Arduino.h
and then simply using FreeRTOS just doesn’t feel right.
Is this the way to do it? Or is there a better/more explicit way to do this? Ideally I’d like to keep using the libraries written for Arduino.
Any help to better understand this would be appreciated!