diff --git a/arch/arm/src/lpc17xx/Kconfig b/arch/arm/src/lpc17xx/Kconfig index 0b482540f2a..77093086a2e 100644 --- a/arch/arm/src/lpc17xx/Kconfig +++ b/arch/arm/src/lpc17xx/Kconfig @@ -395,7 +395,7 @@ config ADC0_SPS config ADC_CHANLIST bool "Use ADC channel list" default n - ---help-- + ---help--- The errata that states: "A/D Global Data register should not be used with burst mode or hardware triggering". If this option is selected, then the ADC driver will grab from the individual channel registers @@ -415,7 +415,7 @@ config ADC_NCHANNELS int "ADC0 number of channels" depends on LPC17_ADC default 0 - ---help-- + ---help--- If CONFIG_ADC_CHANLIST is enabled, then the platform specific code must do two things: (1) define ADC_NCHANNELS in the configuration file and (2) provide an array g_adc_chanlist[] with the channel diff --git a/arch/arm/src/lpc17xx/lpc17_adc.c b/arch/arm/src/lpc17xx/lpc17_adc.c index bcc42f1535e..ddf5b362f2a 100644 --- a/arch/arm/src/lpc17xx/lpc17_adc.c +++ b/arch/arm/src/lpc17xx/lpc17_adc.c @@ -329,12 +329,12 @@ static int adc_interrupt(int irq, void *context) int i; regval = getreg32(LPC17_ADC_GDR); - for(i = 0; i < CONFIG_ADC_NCHANNELS; i++ + for (i = 0; i < CONFIG_ADC_NCHANNELS; i++) { - ch = g_adc_chanlist[i]; + ch = g_adc_chanlist[i]; regval = getreg32(LPC17_ADC_DR(ch)); - if(regval&ADC_DR_DONE) + if (regval&ADC_DR_DONE) { priv->count[ch]++; priv->buf[ch] += regval & 0xfff0; diff --git a/arch/arm/src/lpc17xx/lpc17_adc.h b/arch/arm/src/lpc17xx/lpc17_adc.h index ecca04446d6..a1bd9fe4d86 100644 --- a/arch/arm/src/lpc17xx/lpc17_adc.h +++ b/arch/arm/src/lpc17xx/lpc17_adc.h @@ -94,7 +94,7 @@ extern "C" #ifdef CONFIG_ADC_CHANLIST EXTERN uint8_t g_adc_chanlist[CONFIG_ADC_NCHANNELS]; -#endiff +#endif /**************************************************************************** * Public Functions @@ -119,6 +119,5 @@ FAR struct adc_dev_s *lpc17_adcinitialize(void); #ifdef __cplusplus } #endif -#endif /* __ASSEMBLY__ */ #endif /* __ARCH_ARM_SRC_LPC17XX_LPC17_ADC_H */