rubberduck203 / stm32f3-discovery

Rust Board Support Package for the STM32F3DISCOVERY
Apache License 2.0
52 stars 20 forks source link

Add ability to use `interrupt::enable` and `interrupt::clear` on arbitrary GPIO/EXTI lines #13

Open rubberduck203 opened 4 years ago

rubberduck203 commented 4 years ago

interrupt::enable and interrupt::clear are currently hard coded to work only for the user button. Allow these to work for any interrupt the user may want to use on the board.

Also, add UserButton.interrupt_enable() and UserButton.interrupt_clear() methods?