stm32f0 icon indicating copy to clipboard operation
stm32f0 copied to clipboard

Rust API for the STM32F0 micro controller

Results 10 stm32f0 issues
Sort by recently updated
recently updated
newest added

Japaric based HAL with basics peripherals usable for tutorials and Robus - [x] GPIO - [x] check alternate function #33 - [ ] EXTIT - [ ] TIMER - [...

enhancement

For Robus we need to use TIM7 in single mode. For now we can't change from continuous mode, we should find a way to choose between them. For single mode...

We can use cortex-m-rt macro for this. /// default_handler!(foo::bar); /// /// mod foo { /// pub fn bar() { /// ::cortex_m::asm::bkpt(); /// loop {} /// } /// }

enhancement

To make debug easier we could send panic message on serial before aborting. This will help to quickly identify where the program crashes in most cases. The API could look...

enhancement

we should be able ta manage a callback on timers

For now we only have circular timers usable with something like : `timer.start(1_u32.hz());` For Robus we need a one time timer like : ``` timer.setup(1_u32.us()); timer.start(); ```

On Robus we manage baudrate (BPS) of the Serial interface. It could be really interesting to have a function to get an set BPS.

manage hardware quadrature, this feature can be needed for encoders for example

Add in the parameters of init function the callback function