w5500 icon indicating copy to clipboard operation
w5500 copied to clipboard

Using the interrupt

Open elpiel opened this issue 2 years ago • 3 comments

Hello, I'm interested in using the interrupt included in the creed for Wake on Lan. How can I do that?

It would be nice to have an example for this in the repository. I'm open to adding one.

elpiel avatar Feb 08 '23 16:02 elpiel

I don't see any current support for interrupts in this crate, so any PR would need to be added to configure the interrupt. If you'd like to make a PR for adding interrupt support, I'd be happy to review it :)

ryan-summers avatar Feb 14 '23 17:02 ryan-summers

I'd love to, however, I've only just began with embedded rust and I would need guidance to add support for interrupts.

Would you mind that or?

PS: I've also started working on async version of the crate, might open a WIP PR soon

elpiel avatar Feb 14 '23 20:02 elpiel

No worries, would be happy to guid.

I imagine we want a new API added to `UninitializedDevice:

pub fn enable_interrupt(&mut self, interrupt: InterruptType)

or something similar. Also we would want to enable them for specific sockets.

ryan-summers avatar Feb 15 '23 17:02 ryan-summers