1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega_common/include
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
..
atmega_gpio.h cpu/atmega_common: Fix atmega_port_addr() 2022-06-27 22:15:52 +02:00
atmega_regs_common.h cpu/atmega_common: checking features instead of CPU models 2023-07-04 23:17:21 +02:00
cpu_clock.h cpu/atmega_common: checking features instead of CPU models 2023-07-04 23:17:21 +02:00
cpu_conf.h cpu/atmega_common: Increase stack a little bit 2023-12-01 14:12:24 +01:00
gpio_ll_arch.h cpu/atmega_common: implement periph/gpio_ll{,_irq} 2022-05-02 14:44:55 +02:00
periph_cpu_common.h drivers/periph/gpio_ll: shrink gpio_conf_t 2024-01-21 08:38:40 +01:00