Disable pull up resistor when using input on the Due

This commit is contained in:
Kristian Lauszus 2014-02-26 23:43:40 +01:00
parent a24ecb5797
commit ce81146f2b

View file

@ -825,7 +825,7 @@ MAKE_PIN(P33, CORE_PIN33_PORTREG, CORE_PIN33_BIT, CORE_PIN33_CONFIG);
// SetDirRead: // SetDirRead:
// Disable interrupts // Disable interrupts
// Enable the pull up resistor // Disable the pull up resistor
// Set to INPUT // Set to INPUT
// Enable PIO // Enable PIO
@ -846,7 +846,7 @@ public: \
} \ } \
static void SetDirRead() { \ static void SetDirRead() { \
baseReg->PIO_IDR = pinMask ; \ baseReg->PIO_IDR = pinMask ; \
baseReg->PIO_PUER = pinMask; \ baseReg->PIO_PUDR = pinMask; \
baseReg->PIO_ODR = pinMask; \ baseReg->PIO_ODR = pinMask; \
baseReg->PIO_PER = pinMask; \ baseReg->PIO_PER = pinMask; \
} \ } \