diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-23 09:24:31 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-25 18:36:39 -0600 |
commit | 654b1940705197f22ffeebd73e62cea2282bdbda (patch) | |
tree | 6e912d5d76d2d660d80cdee1e2217ed72af0063d /libhw/rp2040_hwspi.c | |
parent | 188ac62a0c0f5519f5d45519fa7d224cb25305c6 (diff) |
Pull iovec definitions out into libhw/generic/io.h
Diffstat (limited to 'libhw/rp2040_hwspi.c')
-rw-r--r-- | libhw/rp2040_hwspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhw/rp2040_hwspi.c b/libhw/rp2040_hwspi.c index 23f3e8c..c60d6b9 100644 --- a/libhw/rp2040_hwspi.c +++ b/libhw/rp2040_hwspi.c @@ -83,7 +83,7 @@ void _rp2040_hwspi_init(struct rp2040_hwspi *self, self->pin_cs = pin_cs; } -static void rp2040_hwspi_readwritev(struct rp2040_hwspi *self, const struct bidi_iovec *iov, int iovcnt) { +static void rp2040_hwspi_readwritev(struct rp2040_hwspi *self, const struct duplex_iovec *iov, int iovcnt) { assert(self); spi_inst_t *inst = self->inst; @@ -101,7 +101,7 @@ static void rp2040_hwspi_readwritev(struct rp2040_hwspi *self, const struct bidi else if (iov[i].iov_read_dst) spi_read_blocking(inst, 0, iov[i].iov_read_dst, iov[i].iov_len); else - assert_notreached("bidi_iovec is neither read nor write"); + assert_notreached("duplex_iovec is neither read nor write"); } gpio_put(self->pin_cs, 1); } |