stm32-rs / stm32l0xx-hal

A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust
BSD Zero Clause License
96 stars 60 forks source link

Enable USART DMA for STM32L0x1 family #210

Closed valentink-eroad closed 2 years ago

valentink-eroad commented 2 years ago

Tested the change on my STM32L051T6 board with serial_dma_async example.

I also had to fix the serial_dma_async itself as the heapless Queue::new() creates a queue with capacity N-1: https://docs.rs/heapless/0.7.1/heapless/spsc/struct.Queue.html#method.new

valentink-eroad commented 2 years ago

Sorry, missed to switch to my personal Git account, so the PR is created from my 'work' profile