Skip to content

Commit 769b7c5

Browse files
committed
NRF52x SPI capabilities: rx/tx buffers can have different sizes
1 parent 689e0be commit 769b7c5

File tree

1 file changed

+2
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

1 file changed

+2
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/spi_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ void spi_get_capabilities(PinName ssel, bool slave, spi_capabilities_t *cap)
138138
cap->hw_cs_handle = false; // irrelevant in slave mode
139139
cap->slave_delay_between_symbols_ns = 2500; // 2.5 us
140140
cap->clk_modes = 0x0f; // all clock modes
141+
cap->tx_rx_buffers_equal_length = false; // rx/tx buffers can have different sizes
141142
#if DEVICE_SPI_ASYNCH
142143
cap->async_mode = true;
143144
#else
@@ -151,6 +152,7 @@ void spi_get_capabilities(PinName ssel, bool slave, spi_capabilities_t *cap)
151152
cap->hw_cs_handle = false; // to be determined later based on ssel
152153
cap->slave_delay_between_symbols_ns = 0; // irrelevant in master mode
153154
cap->clk_modes = 0x0f; // all clock modes
155+
cap->tx_rx_buffers_equal_length = false; // rx/tx buffers can have different sizes
154156
#if DEVICE_SPI_ASYNCH
155157
cap->async_mode = true;
156158
#else

0 commit comments

Comments
 (0)