1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 08:32:43 +01:00
RIOT/cpu/esp32/esp-idf
Gunar Schorcht 97ad22eed6 cpu/esp32/esp-idf: minimum gpio definition for ESP-IDF headers
A number of ESP-IDF header files that are needed to compile RIOT include the header file `driver/gpio.h` only because of the definition of the type `gpio_num_t`. However, this header file contains the entire GPIO API definition of the ESP-IDF, which conflicts with that of RIOT.
The solution was to use a wrapper library that does not need to include the `driver/gpio.h` file of the ESP-IDF during compilation of RIOT code.
This commit provides another approach which does not require such a wrapper library. It just provides its own `driver/gpio.h` in RIOT that is included by ESP-IDF header files instead of the original `driver/gpio.h` in ESP-IDF. It  defines only the required `gpio_num_t` if RIOT code is compiled but includes the original `driver/gpio.h` of ESP-IDF if ESP-IDF code is compiled. This avoids to create a wrapper library for each module.
2023-03-27 03:10:56 +02:00
..
adc cpu/esp32: add ESP32-S2 support to ESP-IDF compilation 2022-08-23 17:34:38 +02:00
ble cpu/esp32/esp-idf: add ESP-IDF module for BLE support 2022-08-24 09:03:38 +02:00
common cpu/esp32: add ESP32-S2 support to ESP-IDF compilation 2022-08-23 17:34:38 +02:00
efuse cpu/esp32: use CPU_FAM instead of CPU in Makefiles 2022-07-18 13:05:21 +02:00
eth cpu/esp32: add modules for compilation of required ESP-IDF code 2022-06-01 13:21:29 +02:00
event cpu/esp32: add modules for compilation of required ESP-IDF code 2022-06-01 13:21:29 +02:00
gpio cpu/esp32: Fix kconfig model 2022-07-26 15:08:46 +02:00
heap cpu/esp32: use CPU_FAM instead of CPU in Makefiles 2022-07-18 13:05:21 +02:00
include cpu/esp32/esp-idf: minimum gpio definition for ESP-IDF headers 2023-03-27 03:10:56 +02:00
nvs_flash cpu/esp32/esp-idf: add ESP-IDF module for BLE support 2022-08-24 09:03:38 +02:00
spi_flash cpu/esp32: add ESP32-S2 support to ESP-IDF compilation 2022-08-23 17:34:38 +02:00
spi_ram cpu/esp32: add ESP32-S3 support to ESP-IDF interface API compilation 2022-08-09 15:57:18 +02:00
usb cpu/esp32: add ESP-IDF USB code as module esp_idf_usb 2022-09-27 01:00:57 +02:00
wifi cpu/esp32: use CPU_FAM instead of CPU in Makefiles 2022-07-18 13:05:21 +02:00
wpa_supplicant cpu/esp32: split esp_idf_wpa_supplicant into several modules 2022-06-21 16:28:41 +02:00
esp_idf_cflags.mk cpu/esp32/esp-idf: minimum gpio definition for ESP-IDF headers 2023-03-27 03:10:56 +02:00
esp_idf_support.c cpu/esp32: cleanup of esp_log_write 2022-07-20 08:54:15 +02:00
esp_idf.mk cpu/esp32/esp-idf: minimum gpio definition for ESP-IDF headers 2023-03-27 03:10:56 +02:00
Kconfig cpu/esp32: add flashpage support 2023-01-07 14:49:36 +01:00
Makefile cpu/esp32: add ESP-IDF USB code as module esp_idf_usb 2022-09-27 01:00:57 +02:00