Skip to content
  • Sebastien Lorquet's avatar
    bef51809
    Fix the STM32L4 SPI driver. That SPI driver is quite different. They now... · bef51809
    Sebastien Lorquet authored
    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.
    bef51809
    Fix the STM32L4 SPI driver. That SPI driver is quite different. They now...
    Sebastien Lorquet authored
    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.
To find the state of this project's repository at the time of any of these versions, check out the tags.
Loading