arch/{nrf52|nrf53}/Kconfig: hide SPI_MASTER options if SPI_MASTER not enabled
This commit is contained in:
parent
81b0ae064c
commit
5f814b1da8
@ -193,14 +193,6 @@ config NRF52_SPI3_MASTER
|
||||
select NRF52_SPI_MASTER
|
||||
depends on NRF52_HAVE_SPI3_MASTER
|
||||
|
||||
if NRF52_SPI_MASTER
|
||||
|
||||
config NRF52_SPI_MASTER_INTERRUPTS
|
||||
bool "SPI Master interrupts support"
|
||||
default n
|
||||
|
||||
endif
|
||||
|
||||
config NRF52_GPIOTE
|
||||
bool "GPIOTE (GPIO interrupts)"
|
||||
default n
|
||||
@ -679,14 +671,23 @@ endmenu # SAADC Configuration
|
||||
|
||||
menu "SPI Configuration"
|
||||
|
||||
if NRF52_SPI_MASTER
|
||||
|
||||
config NRF52_SPI_MASTER_INTERRUPTS
|
||||
bool "SPI Master interrupts support"
|
||||
default n
|
||||
|
||||
config NRF52_SPI_MASTER_WORKAROUND_1BYTE_TRANSFER
|
||||
bool "Master 1 Byte transfer anomaly workaround"
|
||||
depends on NRF52_SPI_MASTER && ARCH_CHIP_NRF52832
|
||||
depends on ARCH_CHIP_NRF52832
|
||||
select NRF52_PPI
|
||||
default y
|
||||
---help---
|
||||
Enable the workaround to fix SPI Master 1 byte transfer bug
|
||||
which occurs in NRF52832 revision 1 and revision 2.
|
||||
|
||||
endif # NRF52_SPI_MASTER
|
||||
|
||||
endmenu
|
||||
|
||||
menu "I2C Master Configuration"
|
||||
|
@ -240,14 +240,6 @@ config NRF53_SPI4_MASTER
|
||||
|
||||
endif # NRF53_HAVE_SPI1234
|
||||
|
||||
if NRF53_SPI_MASTER
|
||||
|
||||
config NRF53_SPI_MASTER_INTERRUPTS
|
||||
bool "SPI Master interrupts support"
|
||||
default n
|
||||
|
||||
endif
|
||||
|
||||
config NRF53_UART0
|
||||
bool "UART0"
|
||||
default n
|
||||
@ -656,6 +648,18 @@ config NRF53_PER_PIN_INTERRUPTS
|
||||
|
||||
endmenu # GPIO Interrupt Configuration
|
||||
|
||||
menu "SPI Configuration"
|
||||
|
||||
if NRF53_SPI_MASTER
|
||||
|
||||
config NRF53_SPI_MASTER_INTERRUPTS
|
||||
bool "SPI Master interrupts support"
|
||||
default n
|
||||
|
||||
endif # NRF53_SPI_MASTER
|
||||
|
||||
endmenu
|
||||
|
||||
menu "I2C Master Configuration"
|
||||
|
||||
if NRF53_I2C_MASTER
|
||||
|
Loading…
Reference in New Issue
Block a user