stm32-rs / stm32f1xx-hal

A Rust embedded-hal HAL impl for the STM32F1 family based on japarics stm32f103xx-hal
Apache License 2.0
564 stars 177 forks source link

Add a public method to check for Busy flag in SPI #442

Closed imihajlow closed 2 years ago

imihajlow commented 2 years ago

Use case: after waiting on a DMA transfer in master mode, make sure the last byte is transferred correctly by waiting for the busy flag to be cleared before disabling SPI.

burrbull commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: