#
# 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

config ARCH_CHIP_NRF52840
	bool "NRF52840"
	select ARCH_FAMILY_NRF52
	select ARCH_FAMILY_NRF52840
	#select NRF52_HAVE_I2C_MASTER
	#select NRF52_HAVE_UART

endchoice # NRF52 Chip Selection

# NRF52 Families

config ARCH_FAMILY_NRF52
	bool
	default n

config ARCH_FAMILY_NRF52832
	bool
	default n

config ARCH_FAMILY_NRF52840
	bool
	default n

# 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

config NRF52_RNG
	bool "Random Generator"
	default n
	select ARCH_HAVE_RNG

config NRF52_QSPI
	bool "QSPI"
	default n
	depends on ARCH_CHIP_NRF52840

config NRF52_WDT
	bool "Watchdog (WDT)"
	default n
	select WATCHDOG

endmenu # NRF52 Peripheral Selection

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

menu "GPIO Interrupt Configuration"

config NRF52_GPIOIRQ
	bool "Support GPIO Interrupts"
	default n

endmenu # GPIO Interrupt Configuration
