1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 18:43:50 +01:00

818 Commits

Author SHA1 Message Date
Gunar Schorcht
ae73a85d88 cpu/esp32/periph/can: migration to ESP-IDF v5.4 2025-05-28 17:50:42 +02:00
Gunar Schorcht
ef89dccfb8 cpu/esp32/periph/adc: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
e3cc088caa cpu/esp32/esp-idf/wpa_supplicant: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
a0d43f12ee cpu/esp32/esp-idf/wifi: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
17ba88c9cb cpu/esp32/esp-idf/usb: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
14d1e577f8 cpu/esp32/esp-idf/spi_ram: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
bb350ad160 cpu/esp32/esp-idf/spi_flash: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
1c1bb33c88 cpu/esp32/esp-idf/sdmmc: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
a6d09cdac0 cpu/esp32/esp-idf/rmt: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
dc677e6396 cpu/esp32/esp-idf/nvs_flash: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
26927fe8ef cpu/esp32/esp-idf/heap: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
c0f383c2ad cpu/esp32/esp-idf/log: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
84ff968283 cpu/esp32/esp-idf/gpio: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
ece5e8eb88 cpu/esp32/esp-idf/eth: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
2e1810bf17 cpu/esp32/esp-idf/efuse: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
ca1a503399 cpu/esp32/esp-idf/common: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
beca894ed8 cpu/esp32/esp-idf/ble: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
870c1c046c cpu/esp32/esp-idf/adc: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
cd7b1a662d cpu/esp32/esp-idf: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
c93a346ef1 cpu/esp32/esp-idf-api: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
0c028c1078 cpu/esp32/esp_eth: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
75fb14248b cpu/esp32/bootloader: migration to ESP-IDF v5.4 2025-05-28 17:50:41 +02:00
Gunar Schorcht
231008116b pkg/esp32_sdk_lib_coexist: add coexist libraries 2025-05-28 17:50:40 +02:00
Gunar Schorcht
5377a2ac9f pkg/esp32_sdk_tlsf: add tlsf as used by ESP-IDF 2025-05-28 17:50:40 +02:00
Marian Buschsieweke
cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00
KSKNico
fe821eaa1d cpu: replace header guards with #pragma once 2025-05-21 17:13:37 +02:00
Marian Buschsieweke
8e904a0ccb
cpu/esp32: add workaround for mpaland-printf
When mpaland-printf is used, we do not want to have references to
newlib's stdio in the resulting binary.
2025-04-26 15:28:18 +02:00
benpicco
623f865ceb
Merge pull request #21144 from gschorcht/dist/tools/esptools/bump_gcc_version_to_14_2
dist/tools/esptools: Upgrade the ESP32 toolchain to GCC v14.2, GDB v14.2 and OpenOCD v0.12
2025-04-08 07:58:06 +00:00
Gunar Schorcht
0067f69d0b dist/tools/esptools: bump to QEMU version 9.0.0 2025-04-08 07:19:18 +02:00
MrKevinWeiss
f770f72202
treewide: Fix spelling mistakes 2025-03-13 13:59:07 +01:00
Marian Buschsieweke
f0d53789e4
Merge pull request #21245 from gschorcht/cpu/esp32/fix_compile_problem_gcc_14.2
cpu/esp32: Fixes of compile problems with GCC 14.2
2025-03-02 13:18:36 +00:00
Gunar Schorcht
689883c583 cpu/esp32: fix bus_width in periph_sdmmc 2025-03-02 12:40:27 +01:00
Gunar Schorcht
4f136fb3ad cpu/esp32: add missing atomic built-in functions
Atomic built-in function __atomic_test_and_set seem to be missing in GCC 14.2.0 for some ESP32x SoCs.
2025-03-02 12:39:18 +01:00
Mikolai Gütschow
9a45c30222
examples: shorten subfolders' names 2025-02-21 09:55:24 +01:00
krzysztof-cabaj
a2dfd78b27 treewide: fix double the in doc and comments 2025-02-18 13:25:02 +01:00
Mikolai Gütschow
ca5fe72bf8
treewide: fix example references in docs
adapt to folder structure from #21135
2025-02-14 19:14:22 +01:00
Gilles DOFFE
ae51a22fbb can: use frame len instead of can_dlc
RIOT implementation of CAN bus relies on SocketCAN model.
Since commit c398e56 (can: add optional DLC element to Classical CAN
frame structure), '__u8 can_dlc' attribute of struct can_frame is
considered as deprecated in SocketCAN and kept for legacy support.
Attribute '__u8 len' should be used instead.

	union {
		/* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
		 * was previously named can_dlc so we need to carry that
		 * name for legacy support
		 */
		__u8 len;
		__u8 can_dlc; /* deprecated */
	};

Moreover, CAN FD frame structure does not support legacy attribute
'can_dlc', making 'len' mandatory for incoming CAN FD support in RIOT.

	struct canfd_frame {
		canid_t can_id;  /* 32 bit CAN_ID + EFF/RTR/ERR flags */
		__u8    len;     /* frame payload length in byte */
		__u8    flags;   /* additional flags for CAN FD */
		__u8    __res0;  /* reserved / padding */
		__u8    __res1;  /* reserved / padding */
		__u8    data[CANFD_MAX_DLEN]
__attribute__((aligned(8)));
	};

Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
Gunar Schorcht
ba3224310e cpu/esp32: changes for the future gcc version 14.2.0
To avoid type conflicts between the `pthread_rwlockattr_t` definition in RIOT's `pthread` implementation and newlibc's `sys/_pthreadtypes.h`, the macro `_POSIX_READER_WRITER_LOCKS` must be undefined.
2025-01-20 09:06:59 +01:00
Gunar Schorcht
8b791dae7b cpu/esp32: cleanup in syscalls_init_arch
The cleanup removes the code that is no longer needed with the cleanup of the linker scripts for ESP ROMs.
2025-01-19 18:51:25 +01:00
Gunar Schorcht
ba6c2061fb cpu/esp32: cleanup used linker scripts
The cleanup reduces the number of linker scripts used for the ESP32x ROMs and thus the symbols used from the ESP32x ROMs. It works with both gcc 12.2 and gcc 14.2. The latter gcc version is a prerequisite for ESP-IDF v5.2 and higher and thus a prerequisite for starting the work on the RIOT-OS port for the latest version of ESP-IDF.
2025-01-19 18:51:25 +01:00
Gunar Schorcht
68ea25967d cpu/esp32: use ESP32x ROM libgcc linker Script for all ESP32x SoCs 2025-01-19 18:51:25 +01:00
Gunar Schorcht
81fa366730 cpu/esp32: changes the order of ESP32x ROM linker scripts 2025-01-19 18:51:25 +01:00
Benjamin Valentin
efe978530e cpu/esp*: update documentation of esptools 2025-01-09 13:26:51 +01:00
Marian Buschsieweke
0dfd83938f
{cpu,drivers}/periph_gpio_ll: add missing include
For `gpio_ll_print_conf()` we need to include `<stdio.h>`, when not
using `fmt.h`.
2024-11-27 09:06:56 +01:00
mguetschow
ec9afd28eb
Merge pull request #20972 from IsikcanYilmaz/pr/esp32_usb_serial_jtag_isr_flag_reset
cpu/esp32/stdio_usb_serial_jtag: Fix to ESP32 stdio usb serial hanging if it receives data too quickly
2024-11-12 08:45:34 +00:00
Isikcan Yilmaz
a21d302d08 cpu/esp32/stdio_usb_serial_jtag: clear all usb serial jtag flags and flush the tx fifo at the end of usb serial isrs 2024-11-11 11:20:46 +01:00
Marian Buschsieweke
2b6f65a08a
build_system/xfa: change API to fix alignment
This changes the API of xfa from

    XFA(array_name, prio) type element_name = INITIALIZER;

to

    XFA(type, array_name, prio) element_name = INITIALIZER;

this allows forcing natural alignment of the type, fixing failing tests
on `native64`.
2024-11-07 16:30:01 +01:00
Marian Buschsieweke
c2c2cc8592
drivers/periph_gpio: let gpio_read() return bool
Since https://github.com/RIOT-OS/RIOT/pull/20935 gpio_write()
uses a `bool` instead of an `int`. This does the same treatment for
`gpio_read()`.

This does indeed add an instruction to `gpio_read()` implementations.
However, users caring about an instruction more are better served with
`gpio_ll_read()` anyway. And `gpio_read() == 1` is often seen in
newcomer's code, which would now work as expected.
2024-10-23 13:24:09 +02:00
Benjamin Valentin
4627f66caa drivers/periph/gpio: make gpio_write() take a bool 2024-10-22 16:39:48 +02:00
AnnsAnn
bd48d0bb82 cpu/esp32: improve build error messages 2024-10-16 16:02:32 +02:00