From 493c1c817e0903c0b98ab096e532d7db95f23b2f Mon Sep 17 00:00:00 2001
From: Thibaut VIARD <thibaut.viard@atmel.com>
Date: Mon, 12 May 2014 12:06:45 +0200
Subject: [PATCH]  Adding reset pin configuration (input/pullup)

---
 cores/arduino/validation/test.cpp | 2 +-
 cores/arduino/wiring.c            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cores/arduino/validation/test.cpp b/cores/arduino/validation/test.cpp
index 3f16d4f7..fc7b2b23 100644
--- a/cores/arduino/validation/test.cpp
+++ b/cores/arduino/validation/test.cpp
@@ -81,7 +81,7 @@ void loop( void )
   Serial.write( "test2" ) ;   // send another string
 */
 
-  // Test digitalRead: connect pin 2 to either GND or 3.3V. !!!! NOT on 5V pinZZ !!!!
+  // Test digitalRead: connect pin 2 to either GND or 3.3V. !!!! NOT on 5V pin !!!!
   pin_value=digitalRead( 2 ) ;
 //  Serial.write( "pin 2 value is %s\n", (pin_value == LOW)?"LOW":"HIGH" ) ;
   delay( 1000 ) ;              // wait for a second
diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c
index 8ba09d3e..e7f6167c 100644
--- a/cores/arduino/wiring.c
+++ b/cores/arduino/wiring.c
@@ -67,9 +67,9 @@ void init( void )
   PM->APBCMASK.reg |= PM_APBCMASK_ADC | PM_APBCMASK_DAC ;
 
   // Setup all pins (digital and analog) in INPUT mode (default is nothing)
-//	for ( ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
+	for ( ul = 0 ; ul < NUM_DIGITAL_PINS ; ul++ )
   {
-//	  pinMode( ul, INPUT ) ;
+	  pinMode( ul, INPUT ) ;
   }
 
   // Initialize Serial port U(S)ART pins
-- 
GitLab