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:
4:6ebbf25b9167
Parent:
2:1a6ed4b84590
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Devices/FastIO_LPC11UXX.h	Wed Jul 16 19:31:35 2014 +0000
@@ -0,0 +1,38 @@
+#ifdef TARGET_LPC11UXX
+
+#include "mbed.h"
+#include "pinmap.h"
+
+typedef struct {
+    uint32_t mask;
+} fastio_vars;
+
+#define PORT            ((unsigned int)pin >> PORT_SHIFT)
+#define PINMASK         (1 << ((int)pin & 0x1F))
+static inline void initpin(PinName pin);
+
+#define INIT_PIN        container.mask = PINMASK; initpin(pin)
+#define DESTROY_PIN     
+
+#define SET_DIR_INPUT   (LPC_GPIO->DIR[PORT] &= ~PINMASK)
+#define SET_DIR_OUTPUT  (LPC_GPIO->DIR[PORT] |= PINMASK)
+#define SET_MODE(pull)  (pin_mode(pin, pull))
+
+#define WRITE_PIN_SET   (LPC_GPIO->SET[PORT] = PINMASK)
+#define WRITE_PIN_CLR   (LPC_GPIO->CLR[PORT] = PINMASK)
+
+#define READ_PIN        ((LPC_GPIO->PIN[PORT] & container.mask) ? 1 : 0)
+
+static inline void initpin(PinName pin) {
+    int f = ((pin == P0_0)  ||
+    (pin == P0_10) ||
+    (pin == P0_11) ||
+    (pin == P0_12) ||
+    (pin == P0_13) ||
+    (pin == P0_14) ||
+    (pin == P0_15)) ? (1) : (0);
+
+    pin_function(pin, f);
+}
+
+#endif
\ No newline at end of file