Module gpio
Expand description
GPIO HAL plus per-line edge-callback demuxer. Kernel drivers use
register_edge_handler and the IRQ slot from irq_slot_for_line.
Structs§
Enums§
Functions§
- configure_
input - configure_
output - configure_
output_ od - dispatch
- IRQ-context demuxer; register once per used IRQ slot. Only
services lines belonging to
vector. - enable_
port_ clock - Ungate the port’s clock without touching mode/pull — needed
before
read_odron a still-analog pin. - irq_
slot_ for_ line - IRQ slot that fires for
line, or None for lines outside 0..15.constso callers can validate DT-derived lines at compile time. - read
- read_
odr - Read ODR (latched output bit). Use instead of
readon a pin that may still be in analog mode — IDR is forced to 0 there (RM0432 §8.3.12). Clock must be ungated. - register_
edge_ handler - Install an edge handler for
pinand unmask the line.EBUSYif the line is already claimed — callunregister_edge_handlerfirst. The caller registersdispatchat the matchingirq_slot_for_line(once per slot). - toggle
- unregister_
edge_ handler - write
Type Aliases§
- Edge
Handler - IRQ-context callback. No allocation, no blocking.