From 5bfa42c1b8a15fab747285b87aaec7f9b8fed098 Mon Sep 17 00:00:00 2001 From: ahb Date: Thu, 9 Mar 2017 10:41:59 +0100 Subject: [PATCH] change Kconfig type of ADC0_MASK from hex to int; add ADC driver options to lpc43xx --- arch/arm/src/lpc11xx/Kconfig | 4 ++-- arch/arm/src/lpc17xx/Kconfig | 4 ++-- arch/arm/src/lpc43xx/Kconfig | 13 +++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/lpc11xx/Kconfig b/arch/arm/src/lpc11xx/Kconfig index 33ab254958..46b01ab6e9 100644 --- a/arch/arm/src/lpc11xx/Kconfig +++ b/arch/arm/src/lpc11xx/Kconfig @@ -122,8 +122,8 @@ config ADC0_AVERAGE default 200 config ADC0_MASK - int "ADC0 mask" - default 1 + hex "ADC0 mask" + default 0x01 config ADC0_SPS int "ADC0 SPS" diff --git a/arch/arm/src/lpc17xx/Kconfig b/arch/arm/src/lpc17xx/Kconfig index 6f40385804..f8f95f8c5d 100644 --- a/arch/arm/src/lpc17xx/Kconfig +++ b/arch/arm/src/lpc17xx/Kconfig @@ -489,8 +489,8 @@ config ADC0_AVERAGE default 200 config ADC0_MASK - int "ADC0 mask" - default 1 + hex "ADC0 mask" + default 0x01 config ADC0_SPS int "ADC0 SPS" diff --git a/arch/arm/src/lpc43xx/Kconfig b/arch/arm/src/lpc43xx/Kconfig index b597090dca..1b96b48c68 100644 --- a/arch/arm/src/lpc43xx/Kconfig +++ b/arch/arm/src/lpc43xx/Kconfig @@ -335,6 +335,19 @@ config LPC43_WWDT endmenu # LPC43xx Peripheral Support +menu "ADC driver options" + depends on LPC43_ADC0 || LPC43_ADC1 + +config ADC0_MASK + hex "ADC0 mask" + default 0x01 + +config ADC0_FREQ + int "ADC0 frequency" + default 4500000 + +endmenu # ADC driver options + config LPC43_GPIO_IRQ bool "GPIO interrupt support" default n