STM32F103

Fork of mbed-rpc by Mbed

Files at this revision

API Documentation at this revision

Comitter:
olympux
Date:
Wed Aug 12 15:51:47 2015 +0000
Parent:
10:d3e03663a6f4
Commit message:
Added TARGET_STM32F103RB and Arguments.Reply.putData for short

Changed in this revision

Arguments.cpp Show annotated file Show diff for this revision Revisions of this file
parse_pins.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d3e03663a6f4 -r 74cf20da6924 Arguments.cpp
--- a/Arguments.cpp	Thu Jun 18 07:30:13 2015 +0100
+++ b/Arguments.cpp	Wed Aug 12 15:51:47 2015 +0000
@@ -132,6 +132,11 @@
     reply += sprintf(reply, "%d", v);
 }
 
+template<> void Reply::putData<unsigned short>(unsigned short uint16) {
+    separator();
+    reply += sprintf(reply, "%u", uint16);
+}
+
 template<> void Reply::putData<float>(float f) {
     separator();
     reply += sprintf(reply, "%.17g", f);
diff -r d3e03663a6f4 -r 74cf20da6924 parse_pins.cpp
--- a/parse_pins.cpp	Thu Jun 18 07:30:13 2015 +0100
+++ b/parse_pins.cpp	Wed Aug 12 15:51:47 2015 +0000
@@ -38,7 +38,7 @@
                                 , NC, NC, NC, NC, NC, NC, NC, NC, p41, p42, p43, p44, p45, p46};
 #endif
 
-#if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) || defined(TARGET_LPC2368) || defined(TARGET_LPC812) || defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM) || defined(TARGET_LPC1114)
+#if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) || defined(TARGET_LPC2368) || defined(TARGET_LPC812) || defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM) || defined(TARGET_LPC1114) || defined(TARGET_STM32F103RB)
     if (str[0] == 'P') {              // Pn_n
         uint32_t port = str[1] - '0';
         uint32_t pin  = str[3] - '0'; // Pn_n