stm32f1xx-hal
stm32f1xx-hal copied to clipboard
A Rust embedded-hal HAL impl for the STM32F1 family based on japarics stm32f103xx-hal
i want to use pwm drive steering engine,but I don't understand set_duty how to set value, in c design formulas Freq = CK_PSC/((PSC+1)*(ARR+1)) Duty = CCR/(ARR+1) freq = 50Hz Duty...
I writing a generic struct that takes a pwm channel to control a motor. We've tried this code: ```rust struct Motor { pwm: PwmChannel, } ``` And I get the...
Previously when an `Adc` is initialized, the temp/vref sensor was disabled. During an ADC read, the sensor has to be turned on and off, which significantly increases the time it...
Some impls in `spi` & `i2c` are marked with `todo!`
cc @eldruin Could you test this, please. I can't do it myself now.
And also `Rx::{listen_idle, unlisten_idle}` are unsafe. They all use `unsafe { (*USART::ptr()).cr1.modify(|_, w| w. ...) };`. It is non-atomic read-modify-write. Tx and Rx can be used simultaneously from different execution...
There are many possible pin combinations for a Serial peripheral. Many support at least one alternative pin group to be used, and in addition to that, each pin can also...
Alternative to #390
With some functions (e.g. reconfiguration) only safely available when the peripherial is fully under control of the caller, it would make sense to be able to recombine the Tx and...