Fixed constructor for latest mbed library.

Dependents:   Pinscape_Controller_v1 Pinscape_Controller Pinscape_Controller_V2_arnoz Pinscape_Controller_V2

Fork of FastIO by Erik -

Revision:
8:b0d725519c4f
Parent:
7:1e784ae11fba
Child:
10:bb22a3dbedb4
--- a/FastIO.h	Tue Jul 29 18:58:05 2014 +0000
+++ b/FastIO.h	Tue Aug 12 07:15:20 2014 +0000
@@ -129,7 +129,7 @@
  * functions from DigitalInOut are also available (only initialization is different)
  * Code is based on Igor Skochinsky's code (http://mbed.org/users/igorsk/code/FastIO/)
  */
-template <PinName pin, PinMode mode = PullDefault> class FastIn : public FastInOut<pin>
+template <PinName pin, PinMode pinmode = PullDefault> class FastIn : public FastInOut<pin>
 {
 public:
     /**
@@ -140,11 +140,11 @@
      * @endcode
      *
      * @param pin pin the FastIn object should be used for
-     * @param mode (optional) initial mode of the pin after construction: default is PullDefault
+     * @param pinmode (optional) initial mode of the pin after construction: default is PullDefault
      */
     FastIn() {
-        FastInOut::FastInOut();
-        SET_MODE(mode);
+        FastInOut<pin>::FastInOut();
+        SET_MODE(pinmode);
         SET_DIR_INPUT;
     }