From 112bab03336b341c1c3d9155e8afd1a5cc286025 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 15 Feb 2023 01:08:25 +0100 Subject: [PATCH] Update comments in ADC header file --- include/drivers/adc.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.43.0