Skip to content
Commit 3ad57e30 authored by Joakim Andersson's avatar Joakim Andersson Committed by Carles Cufí
Browse files

drivers: spi_bitbang: Fix timing in SPI bitbang driver



Fix timing in SPI bitbang driver.
The issue occurs with CPHA=1 when the input data is changed immediately
after the clock shift on the last bit of the read.
Because we read the input bit after changing the clock, this bit
becomes invalid.
Instead of doing wait, clock-change, read. Do wait, read, clock-change.

Signed-off-by: default avatarJoakim Andersson <joerchan@gmail.com>
parent 3122296e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment