You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to write code that works for multiple versions of esp-idf, it is necessary to detect the version during compile time. Something like the following would be good:
/** X.x.x: Major version of the stack */
#define ESP_IDF_VERSION_MAJOR 3
/** x.X.x: Minor version of the stack */
#define ESP_IDF_VERSION_MINOR 0
/** x.x.X: Patch level of the stack */
#define ESP_IDF_VERSION_PATCH 4
The text was updated successfully, but these errors were encountered:
Alvin1Zhang
changed the title
Feature Request: Add version macros to esp-idf
[TW#26570] Feature Request: Add version macros to esp-idf
Sep 28, 2018
projectgus
changed the title
[TW#26570] Feature Request: Add version macros to esp-idf
Feature Request: Add version macros to esp-idf (IDF-253)
Mar 12, 2019
To be able to write code that works for multiple versions of esp-idf, it is necessary to detect the version during compile time. Something like the following would be good:
For example this is done in lwip:
https://github.com/espressif/esp-lwip/blob/99d992cac3e9d7614ba30ac75f6df35adb59f2e1/src/include/lwip/init.h#L53
The text was updated successfully, but these errors were encountered: