Skip to content

Wait for multiple objects implementation#31

Open
mirosator wants to merge 2 commits intoMartinUbl:masterfrom
mirosator:wait_for_multiple_implementation
Open

Wait for multiple objects implementation#31
mirosator wants to merge 2 commits intoMartinUbl:masterfrom
mirosator:wait_for_multiple_implementation

Conversation

@mirosator
Copy link
Contributor

@mirosator mirosator commented Nov 30, 2025

Added SWI to wait on multiple file handles from user tasks. SWI call wait_all returns the file handle that has woken up the process upon returning.

Relies on fixes from #29
Solves #9

- using or on GPIO registry changes so that the same event detection can be applied on multiple gpio pins
- fixed wait_for_event to correctly link a new file as the previous of the current one
…ame time

- Files can use wait_all to wait on multiple tasks, the returned uint32_t is then the file handle that woke the process up, or value of Invalid_Handle (-1), if some issue occurred or it was woken up and it was not determined what woke the process up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant