1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32/include
bors[bot] 812c216f0c
Merge #19450 #19476
19450: cpu/esp32: fix compilation issues with GCC 12.2 r=benpicco a=gschorcht

### Contribution description

This PR provides the changes in `cpu/esp32` and `cpu/esp_common` to fix the compilation issues with GCC v12.2.  It is required as the first step in the preparation of the upgrade to ESP-IDF version 5.1.

**Please note**: Insead of fixing the ESP-IDF 4.4 code itself by a big bunch of patches to fix the compilation problems with GCC v12.2, it temporarily disables some warnings. The reason is that the ESP-IDF 5.1 requires GCC v12.2 and should be fixed for this compiler version by the vendor.

### Testing procedure

Green CI

The change were already tested with all ESP-specific modules like `esp_now`, `esp_wifi`, `esp_spi`  and `esp_ble` for all supported ESP platforms.

### Issues/PRs references

Prerequisite for https://github.com/RIOT-OS/riotdocker/pull/227
Fixes issue #19421

19476: native/syscalls: rename real_clock_gettime to clock_gettime r=benpicco a=Teufelchen1

### Contribution description

When compiling RIOT for native using a recent LLVM and enabling ASAN, one might encounter "Duplicated symbol".

This is due to a name clash with `real_clock_gettime()` in compiler-rt from [LLVM](f50246da65), I renamed RIOTs `real_clock_gettime` and just default to the posix function `clock_gettime`. The wrapper existed, most likely, for consistency only.

(The best solution would probably to convince the LLVM folks to declare their symbol as `static` and refactor a bit)

### Testing procedure

Passing CI should be enough.


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
2023-04-17 20:18:02 +00:00
..
esp_ble_nimble/syscfg cpu/esp32/esp-ble-nimble: fix too many empty lines in syscfg.h 2022-08-27 17:27:23 +02:00
esp_idf_api cpu/esp32: remove ESP-IDF periph_ctrl interface API 2023-03-27 03:10:56 +02:00
freertos cpu/esp_common/freertos: missing functions/definitions for ESP-IDF v4.4 2022-06-01 13:21:29 +02:00
sys cpu/esp32: update sys/lock.h for retargetable locking 2022-05-18 07:27:23 +02:00
adc_arch_private.h cpu/esp32: port periph/adc to ESP-IDF interface API 2022-07-17 17:16:49 +02:00
adc_arch.h cpu/esp32: remove ESP-IDF adc interface API 2023-03-27 03:10:56 +02:00
c11_atomics_compat_cpu.hpp cpu: Platform specific C11 atomics compat headers 2019-10-24 23:08:36 +02:00
can_esp.h cpu/esp32: port periph/can to ESP-IDF twai HAL 2022-07-14 15:51:47 +02:00
can_params.h cpu/esp*: fix doxygen grouping warnings 2021-09-11 12:45:15 +02:00
cpu_conf_esp32.h cpu/esp32: split cpu_conf.h into ESP32x and ESP32 parts 2022-07-18 16:48:56 +02:00
cpu_conf_esp32c3.h cpu/esp32: add ESP32-C3 specific configuration header files 2022-08-05 22:26:22 +02:00
cpu_conf_esp32s2.h cpu/esp32: add ESP32-S2 specific configuration header files 2022-08-29 17:19:39 +02:00
cpu_conf_esp32s3.h cpu/esp32: add ESP32-S3 specific configuration header files 2022-08-17 02:04:07 +02:00
cpu_conf.h cpu/esp32: add flashpage definitions in CPU config 2023-01-07 10:38:52 +01:00
gpio_arch.h cpu/esp32: implement periph/gpio_ll 2022-09-02 15:03:45 +02:00
gpio_ll_arch.h cpu/esp32: implement periph/gpio_ll 2022-09-02 15:03:45 +02:00
irq_arch.h cpu/esp32: add interrupt for RMT 2023-03-28 18:50:48 +02:00
newlib.h cpu/esp32: enable _NANO_FORMATTED_IO for Espressif's GCC 8.4.0 2022-03-08 09:31:42 +01:00
periph_cpu_esp32.h cpu/esp32: move CLOCK_CORECLOCK to periph_cpu_*.h 2022-08-17 15:58:40 +02:00
periph_cpu_esp32c3.h cpu/esp32: remove include of esp_can.h 2022-09-27 00:57:42 +02:00
periph_cpu_esp32s2.h cpu/esp32: clarify units in USB FIFO size definitions 2023-04-16 22:59:11 +02:00
periph_cpu_esp32s3.h cpu/esp32: clarify units in USB FIFO size definitions 2023-04-16 22:59:11 +02:00
periph_cpu.h cpu/esp32: fix compilation with gcc 12.2 2023-04-17 07:32:48 +02:00
rtt_arch.h cpu/esp32: add RTT counter implementation 2020-04-07 09:12:44 +02:00
sdkconfig_esp32.h cpu/esp32: add BLE support for ESP32 2022-08-24 09:05:25 +02:00
sdkconfig_esp32c3.h cpu/esp32: fix SDK configuration for USB PHY 2023-01-06 12:30:11 +01:00
sdkconfig_esp32s2.h cpu/esp32: drop CONFIG_ESP_PHY_ENABLE_USB for ESP32S2 2023-02-02 10:56:40 +01:00
sdkconfig_esp32s3.h cpu/esp32: fix SDK configuration for USB PHY 2023-01-06 12:30:11 +01:00
sdkconfig.h cpu/esp32: add flashpage support to Kconfig 2023-01-07 10:38:52 +01:00
syscalls.h cpu/esp32: fix compilation errors 2022-01-25 00:36:51 +01:00