#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
#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 */