mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
arch/{nrf52|nrf53}/Kconfig: hide I2C_MASTER options if I2C_MASTER not enabled
This commit is contained in:
committed by
Petro Karashchenko
parent
a3b91bc183
commit
81b0ae064c
@@ -691,6 +691,8 @@ endmenu
|
|||||||
|
|
||||||
menu "I2C Master Configuration"
|
menu "I2C Master Configuration"
|
||||||
|
|
||||||
|
if NRF52_I2C_MASTER
|
||||||
|
|
||||||
config NRF52_I2C_MASTER_DISABLE_NOSTART
|
config NRF52_I2C_MASTER_DISABLE_NOSTART
|
||||||
bool "Disable the I2C Master NOSTART flag support"
|
bool "Disable the I2C Master NOSTART flag support"
|
||||||
default n
|
default n
|
||||||
@@ -714,6 +716,8 @@ config NRF52_I2C_MASTER_COPY_BUF_SIZE
|
|||||||
transaction will fit otherwise it will fall back
|
transaction will fit otherwise it will fall back
|
||||||
on malloc.
|
on malloc.
|
||||||
|
|
||||||
|
endif # NRF52_I2C_MASTER
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "QSPI Configuration"
|
menu "QSPI Configuration"
|
||||||
|
|||||||
@@ -658,6 +658,8 @@ endmenu # GPIO Interrupt Configuration
|
|||||||
|
|
||||||
menu "I2C Master Configuration"
|
menu "I2C Master Configuration"
|
||||||
|
|
||||||
|
if NRF53_I2C_MASTER
|
||||||
|
|
||||||
config NRF53_I2C_MASTER_DISABLE_NOSTART
|
config NRF53_I2C_MASTER_DISABLE_NOSTART
|
||||||
bool "Disable the I2C Master NOSTART flag support"
|
bool "Disable the I2C Master NOSTART flag support"
|
||||||
default n
|
default n
|
||||||
@@ -681,6 +683,8 @@ config NRF53_I2C_MASTER_COPY_BUF_SIZE
|
|||||||
transaction will fit otherwise it will fall back
|
transaction will fit otherwise it will fall back
|
||||||
on malloc.
|
on malloc.
|
||||||
|
|
||||||
|
endif # NRF53_I2C_MASTER
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "QSPI Configuration"
|
menu "QSPI Configuration"
|
||||||
|
|||||||
Reference in New Issue
Block a user