Skip to content

Add gpiote module to nrf52-hal-common #120

@chris-ricketts

Description

@chris-ricketts

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions