Skip to content

Commit ce20ccc

Browse files
committed
attiny, stm32l0: Note that these chips don't support spi duplex
This makes the ms5607 driver use send/recv instead. Signed-off-by: Keith Packard <[email protected]>
1 parent 1bf40aa commit ce20ccc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/attiny/ao_arch_funcs.h

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ ao_spi_recv_bus(void *block, uint16_t len);
6565
#define ao_spi_send(block, len, bus) ao_spi_send_bus(block, len)
6666
#define ao_spi_recv(block, len, bus) ao_spi_recv_bus(block, len)
6767

68+
#define AO_SPI_DUPLEX 0
69+
6870
void
6971
ao_spi_init(void);
7072

src/stm32l0/ao_arch_funcs.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ ao_spi_recv_byte(uint8_t spi_index)
139139
void
140140
ao_spi_recv(void *block, uint16_t len, uint8_t spi_index);
141141

142-
void
143-
ao_spi_duplex(const void *out, void *in, uint16_t len, uint8_t spi_index);
142+
#define AO_SPI_DUPLEX 0
144143

145144
void
146145
ao_spi_init(void);

0 commit comments

Comments
 (0)