summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-03-05 16:37:15 +0100
committerGitHub <[email protected]>2026-03-05 16:37:15 +0100
commit115581a6bfd54a3696670a4db3c5eaa471360b33 (patch)
treec16659b839088e2bea844304a59bb608caf154ab
parent97476872aa841fcd9cd622e4082d6c57b183c67f (diff)
parent70eb68982309df4bd769958d8bad6a3ed9a526d9 (diff)
Merge pull request #3521 from RobertDaleSmith/fix/max3421-spi-xfer-api
fix(bsp/rp2040): use MAX3421_SPI in spi_write_read_blocking
-rw-r--r--hw/bsp/rp2040/family.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.c b/hw/bsp/rp2040/family.c
index a51b3f758..adb58449d 100644
--- a/hw/bsp/rp2040/family.c
+++ b/hw/bsp/rp2040/family.c
@@ -370,7 +370,7 @@ bool tuh_max3421_spi_xfer_api(uint8_t rhport, uint8_t const* tx_buf, uint8_t* rx
}else if (rx_buf == NULL) {
ret = spi_write_blocking(MAX3421_SPI, tx_buf, xfer_bytes);
}else {
- ret = spi_write_read_blocking(spi0, tx_buf, rx_buf, xfer_bytes);
+ ret = spi_write_read_blocking(MAX3421_SPI, tx_buf, rx_buf, xfer_bytes);
}
return ret == (int) xfer_bytes;