2018-03-26 18:37:32 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
comment "NRF52 Configuration Options"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "NRF52 Chip Selection"
|
|
|
|
default ARCH_CHIP_NRF52832
|
|
|
|
depends on ARCH_CHIP_NRF52
|
|
|
|
|
|
|
|
config ARCH_CHIP_NRF52832
|
|
|
|
bool "NRF52832"
|
|
|
|
select ARCH_FAMILY_NRF52
|
|
|
|
select ARCH_FAMILY_NRF52832
|
|
|
|
#select NRF52_HAVE_I2C_MASTER
|
|
|
|
#select NRF52_HAVE_UART
|
|
|
|
|
2019-03-12 13:51:24 +01:00
|
|
|
config ARCH_CHIP_NRF52840
|
|
|
|
bool "NRF52840"
|
|
|
|
select ARCH_FAMILY_NRF52
|
|
|
|
select ARCH_FAMILY_NRF52840
|
|
|
|
#select NRF52_HAVE_I2C_MASTER
|
|
|
|
#select NRF52_HAVE_UART
|
|
|
|
|
2018-03-26 18:37:32 +02:00
|
|
|
endchoice # NRF52 Chip Selection
|
|
|
|
|
|
|
|
# NRF52 Families
|
|
|
|
|
|
|
|
config ARCH_FAMILY_NRF52
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_FAMILY_NRF52832
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2019-03-12 13:51:24 +01:00
|
|
|
config ARCH_FAMILY_NRF52840
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2018-03-26 18:37:32 +02:00
|
|
|
# Peripheral support
|
|
|
|
|
|
|
|
# Peripheral Selection
|
|
|
|
|
|
|
|
config NRF52_HAVE_I2C_MASTER
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config NRF52_HAVE_SPI_MASTER
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config NRF52_HAVE_UART
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
menu "NRF52 Peripheral Selection"
|
|
|
|
|
|
|
|
config NRF52_I2C0_MASTER
|
|
|
|
bool "I2C0 Master"
|
|
|
|
default n
|
|
|
|
select NRF52_HAVE_I2C_MASTER
|
|
|
|
|
|
|
|
config NRF52_I2C1_MASTER
|
|
|
|
bool "I2C1 Master"
|
|
|
|
default n
|
|
|
|
select NRF52_HAVE_I2C_MASTER
|
|
|
|
|
|
|
|
config NRF52_UART0
|
|
|
|
bool "UART0"
|
|
|
|
default n
|
|
|
|
select UART0_SERIALDRIVER
|
|
|
|
select NRF52_HAVE_UART
|
|
|
|
|
2019-03-12 13:51:24 +01:00
|
|
|
config NRF52_RNG
|
|
|
|
bool "Random Generator"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config NRF52_QSPI
|
|
|
|
bool "QSPI"
|
|
|
|
default n
|
|
|
|
depends on ARCH_CHIP_NRF52840
|
|
|
|
|
2018-04-20 15:13:22 +02:00
|
|
|
config NRF52_WDT
|
|
|
|
bool "Watchdog (WDT)"
|
|
|
|
default n
|
|
|
|
select WATCHDOG
|
|
|
|
|
2018-03-26 18:37:32 +02:00
|
|
|
endmenu # NRF52 Peripheral Selection
|
|
|
|
|
2018-05-05 02:19:36 +02:00
|
|
|
config NRF52_FLASH_PREFETCH
|
|
|
|
bool "Enable FLASH Pre-fetch"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Enable FLASH prefetch
|
|
|
|
|
|
|
|
config NRF52_PROGMEM
|
|
|
|
bool "FLASH program memory"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_PROGMEM
|
|
|
|
---help---
|
|
|
|
Enable support FLASH interfaces as defined in include/nuttx/progmem.h
|
|
|
|
|
2018-03-26 18:37:32 +02:00
|
|
|
menu "GPIO Interrupt Configuration"
|
|
|
|
|
|
|
|
config NRF52_GPIOIRQ
|
|
|
|
bool "Support GPIO Interrupts"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endmenu # GPIO Interrupt Configuration
|