From 70a01f5c6e76706ab37c4e405846fc960ff953ae Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 18 Sep 2014 21:42:54 +0200 Subject: [PATCH] The ADC resolution cannot be selected on the LPC1224, do not confuse the user. --- drivers/adc.c | 7 ------- include/core/lpc_regs_12xx.h | 10 ---------- include/drivers/adc.h | 4 ---- 3 files changed, 21 deletions(-) diff --git a/drivers/adc.c b/drivers/adc.c index f35323b..cbadc07 100644 --- a/drivers/adc.c +++ b/drivers/adc.c @@ -137,13 +137,6 @@ void adc_prepare_conversion_on_event(void) /* Unsupported Yet */ } -/* Change the ADC resolution. */ -void adc_set_resolution(int bits) -{ - /* On LPC1224 there is no possibility to change the ADC resolution */ - return; -} - /***************************************************************************** */ diff --git a/include/core/lpc_regs_12xx.h b/include/core/lpc_regs_12xx.h index 9defa5f..978152b 100644 --- a/include/core/lpc_regs_12xx.h +++ b/include/core/lpc_regs_12xx.h @@ -745,16 +745,6 @@ struct lpc_adc #define LPC_ADC_CHANNEL_MASK (0xFF << 0) #define LPC_ADC_CHANNEL(x) (0x01 << ((x) & 0x07)) #define LPC_ADC_BURST (0x01 << 16) -/* These are unused for LPC1224 */ -#define LPC_ADC_10BITS (0x00 << 17) -#define LPC_ADC_9BITS (0x01 << 17) -#define LPC_ADC_8BITS (0x02 << 17) -#define LPC_ADC_7BITS (0x03 << 17) -#define LPC_ADC_6BITS (0x04 << 17) -#define LPC_ADC_5BITS (0x05 << 17) -#define LPC_ADC_4BITS (0x06 << 17) -#define LPC_ADC_3BITS (0x07 << 17) -#define LPC_ADC_BITS_MASK (0x07 << 17) #define LPC_ADC_SINGLE_BURST (0x01 << 20) diff --git a/include/drivers/adc.h b/include/drivers/adc.h index b4f1bba..72a92c5 100644 --- a/include/drivers/adc.h +++ b/include/drivers/adc.h @@ -58,10 +58,6 @@ void adc_start_single_burst_conversion(uint8_t channels); */ void adc_prepare_conversion_on_event(void); -/* Change the ADC resolution. */ -/* Note : On LPC1224 there is no possibility to change the ADC resolution */ -void adc_set_resolution(int bits); - /***************************************************************************** */ /* ADC Setup : private part : Clocks, Pins, Power and Mode */ -- 2.43.0