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);
}
#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)
*/
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.