From: asterix Date: Tue, 11 Oct 2011 17:16:17 +0000 (+0000) Subject: Fix channel mask, they are 16. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5258513c3d336b9c60b20871080643026c1f82fe;p=bertos.git Fix channel mask, they are 16. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5156 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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