drivers: spi: spi_mcux_ecspi: Fix data size when using 16/32 bit transfers
The data size is set using a burst length, the data size for 8/16/32 is always 1 in those cases. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
7250e987e5
commit
0e8aed7393
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ static void spi_mcux_transfer_next_packet(const struct device *dev)
|
||||||
transfer.txData = NULL;
|
transfer.txData = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
transfer.dataSize = data->dfs;
|
/* Burst length is set in the configure step */
|
||||||
|
transfer.dataSize = 1;
|
||||||
|
|
||||||
status = ECSPI_MasterTransferNonBlocking(base, &data->handle, &transfer);
|
status = ECSPI_MasterTransferNonBlocking(base, &data->handle, &transfer);
|
||||||
if (status != kStatus_Success) {
|
if (status != kStatus_Success) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue