embassy icon indicating copy to clipboard operation
embassy copied to clipboard

Type-erased AnyInterrupt type

Open Dirbaio opened this issue 4 years ago • 0 comments

Similar to AnyPin from the nrf and rp HALs. You'd call .degrade() on a typed interrupt and get an AnyInterrupt.

Together with AnyPin and type-erased AnyUarte/AnySpim/etc peripherals you could reduce code duplication due to generics.

Dirbaio avatar Mar 25 '21 21:03 Dirbaio