Fix channel mask, they are 16.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Oct 2011 17:16:17 +0000 (17:16 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Oct 2011 17:16:17 +0000 (17:16 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5156 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/io/sam3_adc.h

index 30bac49f8631ef43e8c343fef114e4aa513752e2..c855dc850d9bff03b97b006d27ce0b4c40874361 100644 (file)
 #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