Fixed incorrect ADC driver init register manipulation (thanks to Tobias).
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 27 Mar 2009 03:11:58 +0000 (03:11 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 27 Mar 2009 03:11:58 +0000 (03:11 +0000)
LUFA/ChangeLog.txt
LUFA/Drivers/AT90USBXXX/AT90USBXXX67/ADC.h

index 3c482a1..e8dbba0 100644 (file)
@@ -44,6 +44,7 @@
   *  - Fixed CDC demo not sending an empty packet after each transfer to prevent the host from buffering incomming data\r
   *  - Fixed documentation typoes and preprocessor checks relating to misspellings of the USE_RAM_DESCRIPTORS token (thanks to Ian Gregg)\r
   *  - Fixed USBTask.h not conditionally including HostChapter9.h only when CAN_BE_DEVICE is defined (thanks to Ian Gregg)\r
   *  - Fixed CDC demo not sending an empty packet after each transfer to prevent the host from buffering incomming data\r
   *  - Fixed documentation typoes and preprocessor checks relating to misspellings of the USE_RAM_DESCRIPTORS token (thanks to Ian Gregg)\r
   *  - Fixed USBTask.h not conditionally including HostChapter9.h only when CAN_BE_DEVICE is defined (thanks to Ian Gregg)\r
+  *  - Fixed incorrect ADC driver init register manipulation (thanks to Tobias)\r
   *\r
   *  \section Sec_ChangeLog090209 Version 090209\r
   *\r
   *\r
   *  \section Sec_ChangeLog090209 Version 090209\r
   *\r
index 5802770..c86203f 100644 (file)
                         */\r
                        static inline void ADC_SetupChannel(const uint8_t Channel)\r
                        {\r
                         */\r
                        static inline void ADC_SetupChannel(const uint8_t Channel)\r
                        {\r
-                               DDRD  &= ~(1 << Channel);\r
+                               DDRF  &= ~(1 << Channel);\r
                                DIDR0 |=  (1 << Channel);\r
                        }\r
                        \r
                                DIDR0 |=  (1 << Channel);\r
                        }\r
                        \r