Skip to content

GPIO External Interrupt Handler #90

Description

@Naquino14

Goal:

assign a pin to a callback function so that when the pin is high the callback is called
Specific use case: rfm finishes tx, pulls pin to high, unblocks tx method
Suppose you are in callback fn: set wake flag (isr (interrupt service routine)? in scheduler?) to true, poller will then unblock the method.

Ideas:

Register pin in HAL_GPIO header, have it be a weakly defined function (basically if nobody uses it, it wont die)
Have a seprate source file that will store the array, define the behavior of that registration function, and the callback function
Poll function wakes the task by iterating over isr flags

Resources:

STM32 EXTI Getting Started

Deadline: Sat 30th (not happening)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions