From: Nathael Pajani Date: Wed, 15 Feb 2023 00:08:25 +0000 (+0100) Subject: Update comments in ADC header file X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=112bab03336b341c1c3d9155e8afd1a5cc286025;p=soft%2Flpc122x%2Fcore Update comments in ADC header file --- diff --git a/include/drivers/adc.h b/include/drivers/adc.h index 3e8e98b..027660a 100644 --- a/include/drivers/adc.h +++ b/include/drivers/adc.h @@ -36,8 +36,12 @@ #define NB_ADC_CHANNELS 8 #define NB_ADC_SEQUENCES 1 +/* Only one sequence available on LPC122x */ #define LPC_ADC_SEQ(x) 0 +/* For more readability when selecting a channel number */ +#define LPC_ADC(x) (x) + /* Read the conversion from the given channel * This function reads the conversion value directly in the data register and @@ -124,9 +128,6 @@ struct lpc_adc #define LPC_ADC_OVERRUN (0x01 << 30) #define LPC_ADC_CONV_DONE (0x01 << 31) -/* For more readability when selecting a channel number */ -#define LPC_ADC(x) (x) - #endif /* DRIVERS_ADC_H */