1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/nrf5x_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
..
gpio_ll_arch.h cpu/nrf5x_common: implement periph/gpio_ll{,_irq} 2022-04-23 19:47:00 +02:00
nrf_clock.h cpu/nrf5x: allow to request/release HFXO clk src 2021-01-29 11:10:15 +01:00
nrfble.h cpu/nrf5x: added nrfble radio driver 2018-04-06 11:18:53 +02:00
nrfmin_gnrc.h netdev2: rename to netdev and remove gnrc_netdev 2017-03-15 09:31:20 +01:00
nrfmin.h treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
nrfusb.h cpu/nrf5x_common: move usbdev driver to nrf5x_common 2023-07-07 10:53:55 +02:00
nrfx_riot.h pkg: add nrfx as package 2022-06-02 14:59:50 +02:00
periph_cpu_common.h drivers/periph/gpio_ll: shrink gpio_conf_t 2024-01-21 08:38:40 +01:00
timer_arch.h drivers/periph: Add timer_poll feature and timer_poll_channel function 2023-12-19 11:13:41 +01:00