stm32f1xx-hal
stm32f1xx-hal copied to clipboard
A Rust embedded-hal HAL impl for the STM32F1 family based on japarics stm32f103xx-hal
Currently the Pwm implementation works only for Alternate. I miss the implementation for Alternate, furthermore I was not able to figure out how to fix this. Perhaps this Alternate abstraction...
The current implementation of the Pwm subsystem returns a tuple, one entry in the tuple for each channels/pins that were configured. This leads to calls such as ``` pwm_channels.1.enable(); ```...
just tried to build the QEI example for a stm32f103 using the command: `cargo build --features stm32f103 --example qei` The result was the following error: ``` error[E0282]: type annotations needed...
Is there an official method from this crate to use i2c without directly manipulate the bit of the i2c registries? And if not, why?
Something like https://github.com/stm32-rs/stm32g0xx-hal/commit/b97f45780d5333802511639a48da226d4c836215
`AsSlice` (used in the DMA interfaces) only defines `N` for N src/main.rs:88:14 | 88 | for i in data.chunks(255) { | ^^^^ | | | borrowed value does not live...
According to the manual ("9.1.4 Alternate functions (AF)"), > If software configures a GPIO pin as Alternate Function Output, but peripheral is not activated, its output is not specified. So...
Hi, I use an I2C sensor that needs a `delay`: ```rust let device_peripherals = pac::Peripherals::take().unwrap(); let cortex_peripherals = cortex_m::Peripherals::take().unwrap(); // ...some code... let mut delay = Delay::new(cortex_peripherals.SYST, clocks); let mut...
Timers are commonly used as EXTI+timekeeping, for example when listening to a sensor, so that the MCU learns of occurence the event and capture its date of occurence at the...
For consistency, I propose to re export the sdv2rust crate as `device`. It is coherent with the name used by RTFM: https://japaric.github.io/cortex-m-rtfm/book/by-example/app.html If there is approvals and no veto, I...