mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 08:52:45 +01:00
2a00ec13e5
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> |
||
---|---|---|
.. | ||
adc.c | ||
dac.c | ||
flashpage.c | ||
gpio_ll_irq.c | ||
gpio_ll.c | ||
gpio.c | ||
i2c.c | ||
Kconfig | ||
Makefile | ||
pm.c | ||
pwm.c | ||
rtc_mem.c | ||
rtc.c | ||
rtt.c | ||
spi.c | ||
timer.c | ||
uart.c | ||
wdt.c |