Interrupt Handlers + Async #2868
-
For UART and SPI, how to set async functions as handlers for interrupts of Async versions (like Uart)? Ex: And can I manage the priorities between embassy tasks and interrupt handler functions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Or is there a more ergonomic way to await some interrupt being triggered within an embassy task (avoiding the handler)? |
Beta Was this translation helpful? Give feedback.
-
Trying to replicate the
|
Beta Was this translation helpful? Give feedback.
-
Is #2868 (reply in thread) still the correct answer as of esp-hal v1.0.0-beta.1? I seem to mix (software) interrupts and Async and my UART code seems to work fine so far? See: https://github.com/brainstorm/ssh-stamp/blob/main/src/espressif/buffered_uart.rs |
Beta Was this translation helpful? Give feedback.
Because the interrupts are being used to provide the async features. If you mess with the interrupts, the async APIs may not work correctly.