Open tmplt opened 1 year ago
I think we'll need to replace the
usart::Event
with one that takesusart::{spi,uart}::Event
s:pub enum Event { Spi(spi::Event), Uart(uart::Event), }
and derive
strum::FromRepr
on the latter. Thegenerics::events::EventHandler
implementation will probably have to query the hardware in order to return the correctusart::Event
member.
Copied from the internal issue tracker. By @martinmortsell: