This is mbed-rpc library.

Dependents:   RPC_HTTP_WIZnetInterface

Fork of mbed-rpc by Mbed

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Wed Jul 22 02:31:35 2015 +0000
Parent:
10:d3e03663a6f4
Commit message:
Modified parse_pins() function for using WIZwiki-W7500.

Changed in this revision

parse_pins.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/parse_pins.cpp	Thu Jun 18 07:30:13 2015 +0100
+++ b/parse_pins.cpp	Wed Jul 22 02:31:35 2015 +0000
@@ -58,6 +58,16 @@
             pin = pin * 10 + pin2;
         }
         return port_pin((PortName)port, pin);
+#elif defined(TARGET_WIZwiki_W7500)
+    if (str[0] == 'P' && str[2] == '_') {   // Px_n
+        uint32_t port = str[1] - 'A';
+        uint32_t pin  = str[3] - '0';       // Px_n
+        uint32_t pin2 = str[4] - '0';       // Px_nn
+        
+        if (pin2 <= 9) {
+            pin = pin * 10 + pin2;
+        }
+        return port_pin((PortName)port, pin);
 #endif
 
 #if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) || defined(TARGET_LPC2368)