Best way for preprocessing conditionnal based on arch
Posted: Tue Jun 01, 2021 9:09 pm
Im looking to use lora components with esp32-C3 mcu.
Sadly it doesn't compile out of the box because vspi_host doesn't seem to exist on this chipset.
So i would like to adapt the library to use a specific spi host depending of the architecture.
which general variable is accessible from preprocessor to distinguish between arch.
Does idf.py set-target esp32/esp32c3 manipulate such existing variables i can rely on ?
Sadly it doesn't compile out of the box because vspi_host doesn't seem to exist on this chipset.
So i would like to adapt the library to use a specific spi host depending of the architecture.
which general variable is accessible from preprocessor to distinguish between arch.
Does idf.py set-target esp32/esp32c3 manipulate such existing variables i can rely on ?