drivers: spi: Kconfig.nrfx: Use RAM buffers for SPIMs by default
Enable by default the use of RAM buffers in the spi_nrfx_spim.c driver for copying TX data located in flash (as SPIM peripherals cannot transfer directly form flash). Without this patch, users can get confused, especially when SPI transaction is used by an upper level driver which does not check all error codes. For size of the buffer, use the value used so far in the reel_board default configuration and in the SPI loopback test, i.e. 8 bytes. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
2bdbf362e1
commit
b197fb0bbe
4 changed files with 1 additions and 7 deletions
|
@ -12,10 +12,6 @@ config BOARD
|
|||
config I2C
|
||||
default y
|
||||
|
||||
config SPI_NRFX_RAM_BUFFER_SIZE
|
||||
default 8
|
||||
depends on SPI
|
||||
|
||||
if USB
|
||||
|
||||
config USB_NRFX
|
||||
|
|
|
@ -191,7 +191,7 @@ config SPI_4_NRF_RX_DELAY
|
|||
|
||||
config SPI_NRFX_RAM_BUFFER_SIZE
|
||||
int "Size of RAM buffers for SPIM peripherals"
|
||||
default 0
|
||||
default 8
|
||||
depends on NRFX_SPIM
|
||||
help
|
||||
SPIM peripherals cannot transmit data directly from flash. Therefore,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
|
||||
CONFIG_SPI_3_NRF_ORC=0x00
|
||||
CONFIG_SPI_3_NRF_RX_DELAY=1
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
|
||||
CONFIG_SPI_3_NRF_ORC=0x00
|
||||
|
||||
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_3"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue