mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Disable pull up resistor when using input on the Due
This commit is contained in:
parent
a24ecb5797
commit
ce81146f2b
1 changed files with 2 additions and 2 deletions
|
@ -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; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue