1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/efm32
Marian Buschsieweke 2a00ec13e5
drivers/periph/gpio_ll: shrink gpio_conf_t
This commit optimizes the `gpio_conf_t` type in the following
regards:

- The "base" `gpio_conf_t` is stripped from members that only some
  platforms support, e.g. drive strength, slew rate, and disabling of
  the Schmitt Trigger are no longer universally available but
  platform-specific extensions
- The `gpio_conf_t` is now crammed into a bit-field that is 8 bit or
  16 bit wide. This allows for storing lots of them e.g. in
  `driver_foo_params_t` or `uart_conf_t` etc.
- A `union` of the `struct` with bit-field members and a `bits` is used
  to allow accessing all bits in a simple C statement and to ensure
  alignment for efficient handling of the type

Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
2024-01-21 08:38:40 +01:00
..
drivers drivers/saul: use const qualifier for data to write 2022-05-23 08:35:27 +02:00
families cpu/efm32: add family EFM32GG11 (generated with EFM2RIOT) 2023-09-18 12:40:33 +02:00
include cpu/efm32: add DAC support for EFM32 Series1 (VDAC) 2023-08-30 16:47:52 +02:00
periph drivers/periph/gpio_ll: shrink gpio_conf_t 2024-01-21 08:38:40 +01:00
cpu.c cpu: call early_init() 2023-01-08 22:26:12 +01:00
doc.txt cpu/efm32: add support for efm32hg family 2021-01-06 23:44:53 +01:00
efm32-features.mk cpu/efm32: remove exports 2020-02-11 22:46:53 +01:00
efm32-info.mk cpu/efm32/efm32-info: use efm32-info instead of cpus.txt 2020-02-12 12:55:59 +01:00
efm32.config cpu/efm32: model Kconfig 2021-11-18 09:03:06 +01:00
Kconfig cpu/efm32: fix dependency to cmsis-dsp module 2023-05-14 21:18:50 +02:00
Makefile cpu/efm32: add EFM32GG11 family 2023-09-18 12:40:33 +02:00
Makefile.default cpu: make pm_layered a DEFAULT_MODULE 2021-01-27 13:21:20 +01:00
Makefile.dep cpu/efm32: fix dependency to cmsis-dsp module 2023-05-14 21:18:50 +02:00
Makefile.features cpu/efm32: provide periph_uart_modecfg feature for every board 2022-11-21 23:20:19 +01:00
Makefile.include cpu/efm32: add CMSIS DSP include for arm_math.h 2023-05-14 21:08:30 +02:00