From 678ee34259ef4aae25f187bfb2106d74d54315c0 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Thu, 2 Sep 2021 00:28:46 +0200 Subject: [PATCH] Fix TivaSPI bug. The FIFO depth is just 8. --- src/freertos_drivers/ti/TivaSPI.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freertos_drivers/ti/TivaSPI.hxx b/src/freertos_drivers/ti/TivaSPI.hxx index 52202e37a..c2e8443b9 100644 --- a/src/freertos_drivers/ti/TivaSPI.hxx +++ b/src/freertos_drivers/ti/TivaSPI.hxx @@ -189,7 +189,7 @@ private: do { /* fill TX FIFO but make sure we don't fill it to overflow */ - if (tx_len && ((rx_len - tx_len) < (32 / sizeof(T)))) + if (tx_len && ((rx_len - tx_len) < 8)) { if (data_put_non_blocking(*tx_buf) != 0) {