stm32-rs / stm32f407g-disc

Rust BSP crate for the STM32F4DISCOVERY (STM32F407G-DISC) development board
BSD Zero Clause License
43 stars 14 forks source link

make compatible with japaric's RTFM #1

Closed arkap closed 5 years ago

arkap commented 5 years ago

japaric's Real-Time For The Masses framework expects board support crates to re-export their device's interrupt enum Interrupt as interrupt. Moreover, re-exportig hal::stm32::Peripherals makes it possible to specify this crate as target device in RTFM's app attribute like so:

use stm32f407g_disc as board;

#[app(device = board)]