]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Adc_560x, conversion may be started on channels 16-31, for mpc5668.
authorhebe <devnull@localhost>
Wed, 20 Jun 2012 09:36:18 +0000 (11:36 +0200)
committerhebe <devnull@localhost>
Wed, 20 Jun 2012 09:36:18 +0000 (11:36 +0200)
arch/ppc/mpc55xx/drivers/Adc_560x.c

index 359f2cd3fe3c950b87cb7ea738d34123b2daec7c..21f034b6c3136b0dfb08457d4835b599304ba086 100644 (file)
@@ -476,7 +476,11 @@ void Adc_StartGroupConversion (Adc_GroupType group)
 \r
                for(uint8 i =0; i < groupPtr->numberOfChannels; i++)\r
                {\r
+#if defined(CFG_MPC5668)\r
+                       if(groupPtr->channelList[i] <= 31){\r
+#else\r
                        if(groupPtr->channelList[i] <= 15){\r
+#endif\r
                                groupChannelIdMask[0] |= (1 << groupPtr->channelList[i]);\r
                        }else if((groupPtr->channelList[i] >= 32) && (groupPtr->channelList[i] <=47)){\r
                                groupChannelIdMask[1] |= (1 << (groupPtr->channelList[i] - 32));\r