mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Enable pull-up on pin 0. (for real...)
This commit is contained in:
parent
9784c1f3d2
commit
a23721ad81
@ -348,8 +348,8 @@ void init( void )
|
||||
// Initialize C library
|
||||
__libc_init_array();
|
||||
|
||||
// Disable pull-up on every pin except RX0
|
||||
for (int i = 1; i < PINS_COUNT; i++)
|
||||
// Disable pull-up on every pin
|
||||
for (int i = 0; i < PINS_COUNT; i++)
|
||||
digitalWrite(i, LOW);
|
||||
|
||||
// Initialize Serial port U(S)ART pins
|
||||
@ -358,6 +358,7 @@ void init( void )
|
||||
g_APinDescription[PINS_UART].ulPinType,
|
||||
g_APinDescription[PINS_UART].ulPin,
|
||||
g_APinDescription[PINS_UART].ulPinConfiguration);
|
||||
digitalWrite(0, HIGH); // Enable pullup for RX0
|
||||
PIO_Configure(
|
||||
g_APinDescription[PINS_USART0].pPort,
|
||||
g_APinDescription[PINS_USART0].ulPinType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user