From: Nathael Pajani Date: Thu, 18 Sep 2014 19:50:12 +0000 (+0200) Subject: There is no "single burst" mode on the LPC1224, remove corresponding code. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=01e3943605c187021d8b82528e6e57011605364e;p=soft%2Flpc122x%2Fcore There is no "single burst" mode on the LPC1224, remove corresponding code. --- diff --git a/drivers/adc.c b/drivers/adc.c index cbadc07..669960f 100644 --- a/drivers/adc.c +++ b/drivers/adc.c @@ -103,27 +103,9 @@ void adc_start_burst_conversion(uint8_t channels) struct lpc_adc* adc = LPC_ADC; uint32_t reg_val = 0; - /* Set conversion channel bits and burst mode */ - reg_val = ((adc->ctrl & ~LPC_ADC_CHANNEL_MASK) | channels | LPC_ADC_BURST); - /* Clear single burst flag */ - reg_val &= ~(LPC_ADC_SINGLE_BURST); - - adc->ctrl = (reg_val & LPC_ADC_CTRL_MASK); -} - -/* Start single burst conversions : triggers a single conversion for each of the - * selected channels. - * channels is a bit mask of requested channels. - * Use LPC_ADC_CHANNEL(x) (x = 0 .. 7) for channels selection. - */ -void adc_start_single_burst_conversion(uint8_t channels) -{ - struct lpc_adc* adc = LPC_ADC; - uint32_t reg_val = 0; - /* Set conversion channel bits and burst mode */ reg_val = ((adc->ctrl & ~LPC_ADC_CHANNEL_MASK) | channels); - reg_val |= (LPC_ADC_BURST | LPC_ADC_SINGLE_BURST); + reg_val |= LPC_ADC_BURST; adc->ctrl = (reg_val & LPC_ADC_CTRL_MASK); } diff --git a/include/core/lpc_regs_12xx.h b/include/core/lpc_regs_12xx.h index 978152b..dce2aaf 100644 --- a/include/core/lpc_regs_12xx.h +++ b/include/core/lpc_regs_12xx.h @@ -746,8 +746,6 @@ struct lpc_adc #define LPC_ADC_CHANNEL(x) (0x01 << ((x) & 0x07)) #define LPC_ADC_BURST (0x01 << 16) -#define LPC_ADC_SINGLE_BURST (0x01 << 20) - #define LPC_ADC_START_CONV_NOW (0x01 << 24) #define LPC_ADC_START_CONV_MASK (0x07 << 24) diff --git a/include/drivers/adc.h b/include/drivers/adc.h index 72a92c5..aef8e9f 100644 --- a/include/drivers/adc.h +++ b/include/drivers/adc.h @@ -45,13 +45,6 @@ int adc_get_value(uint16_t * val, int channel); */ void adc_start_burst_conversion(uint8_t channels); -/* Start single burst conversions : triggers a single conversion for each of the - * selected channels. - * channels is a bit mask of requested channels. - * Use LPC_ADC_CHANNEL(x) (x = 0 .. 7) for channels selection. - */ -void adc_start_single_burst_conversion(uint8_t channels); - /* Unsupported Yet */ /* This should be used to configure conversion start on falling or rising edges of * some signals, or on timer for burst conversions.