It would be nice to have a safe, ergonomic API to setup events and tasks using the GPIOTE module.
I have an example of how the PAC can be used directly, tested out on the nrf52 dev kit.
I'm up for giving this a go.
I'm guessing it's going to be kind of similar to the gpio module but with more layers. Also I'm wondering about the best way to handle the multiple channels.
It definitely needs a typestate to indicate whether an event pin is configured as pullup or pulldown as a floating pin had me scratching my head for a while.
Does anyone have any hints or implementations they know of in other HAL crates that deal with similar functionality?
It would be nice to have a safe, ergonomic API to setup events and tasks using the GPIOTE module.
I have an example of how the PAC can be used directly, tested out on the nrf52 dev kit.
I'm up for giving this a go.
I'm guessing it's going to be kind of similar to the
gpiomodule but with more layers. Also I'm wondering about the best way to handle the multiple channels.It definitely needs a typestate to indicate whether an event pin is configured as pullup or pulldown as a floating pin had me scratching my head for a while.
Does anyone have any hints or implementations they know of in other HAL crates that deal with similar functionality?