From ce81146f2b58fded9e08371fc2b3cbbcd8c57c5f Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 26 Feb 2014 23:43:40 +0100 Subject: [PATCH] Disable pull up resistor when using input on the Due --- avrpins.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avrpins.h b/avrpins.h index e75042b2..d013851a 100644 --- a/avrpins.h +++ b/avrpins.h @@ -825,7 +825,7 @@ MAKE_PIN(P33, CORE_PIN33_PORTREG, CORE_PIN33_BIT, CORE_PIN33_CONFIG); // SetDirRead: // Disable interrupts -// Enable the pull up resistor +// Disable the pull up resistor // Set to INPUT // Enable PIO @@ -846,7 +846,7 @@ public: \ } \ static void SetDirRead() { \ baseReg->PIO_IDR = pinMask ; \ - baseReg->PIO_PUER = pinMask; \ + baseReg->PIO_PUDR = pinMask; \ baseReg->PIO_ODR = pinMask; \ baseReg->PIO_PER = pinMask; \ } \