From 5258513c3d336b9c60b20871080643026c1f82fe Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 11 Oct 2011 17:16:17 +0000 Subject: [PATCH] Fix channel mask, they are 16. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5156 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/sam3_adc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/cortex-m3/io/sam3_adc.h b/bertos/cpu/cortex-m3/io/sam3_adc.h index 30bac49f..c855dc85 100644 --- a/bertos/cpu/cortex-m3/io/sam3_adc.h +++ b/bertos/cpu/cortex-m3/io/sam3_adc.h @@ -162,7 +162,7 @@ #define ADC_SR (*((reg32_t *)(ADC_BASE + ADC_SR_OFF))) ///< Status register address. -#define ADC_CH_MASK 0x000000FF ///< Channel mask. +#define ADC_CH_MASK 0x0000FFFF ///< Channel mask. #define ADC_CH0 0 ///< Channel 0 #define ADC_CH1 1 ///< Channel 1 #define ADC_CH2 2 ///< Channel 2 -- 2.25.1