Skip to content
Commit bef51809 authored by Sebastien Lorquet's avatar Sebastien Lorquet Committed by Gregory Nutt
Browse files

Fix the STM32L4 SPI driver. That SPI driver is quite different. They now...

Fix the STM32L4 SPI driver.  That SPI driver is quite different. They now handle frames of arbitrary size between 4 and 16 bits. It was broken before a new bit has to be set (rx fifo threshold) to handle <= 8-bit transactions. If not set, the default is 16-bit packed >=8-bit frames and the RXNE bit is never set (it is set when 16-bits are received). weird things as always.

This also add 8-bit access routines to the data register, because a 16-bit access to the data register when the frame size is below 9 bits is interpreted as a packed dual frame exchange.
parent ecf0bcf1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment