Changed to add KL25Z.

Dependents:   ABBlind_hardware_test Tarea_Reloj_mayamira Nucleo_read_button_interrupt_copy SOS_V1

Fork of PinDetect by Andy K

Files at this revision

API Documentation at this revision

Comitter:
xeta05
Date:
Fri May 16 07:27:14 2014 +0000
Parent:
2:cb3afc45028b
Commit message:
By default the PinMode was set to PullDown.; This was not compatible with KL25Z platform.; I have changed it to PullDefault that is plattform dependant (For example is set to PullUP for KL25Z and to PullDown for LPC11UXX)

Changed in this revision

PinDetect.h Show annotated file Show diff for this revision Revisions of this file
diff -r cb3afc45028b -r cb6051b90a52 PinDetect.h
--- a/PinDetect.h	Thu Jan 13 11:09:22 2011 +0000
+++ b/PinDetect.h	Fri May 16 07:27:14 2014 +0000
@@ -172,13 +172,13 @@
 
     /** PinDetect constructor
      *
-     * By default the PinMode is set to PullDown.
+     * By default the PinMode is set to PullDefault.
      *
      * @see http://mbed.org/handbook/DigitalIn
      * @param p PinName is a valid pin that supports DigitalIn
      */    
     PinDetect(PinName p) {
-        init( p, PullDown );
+        init( p, PullDefault );
     }
 
     /** PinDetect constructor