The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
124:2241e3a39974
Parent:
123:b0220dba8be7
Child:
127:25aea2a3f4e3
--- a/TARGET_MTS_DRAGONFLY_F411RE/TARGET_STM/TARGET_STM32F4/common_objects.h	Fri Aug 12 13:04:35 2016 +0200
+++ b/TARGET_MTS_DRAGONFLY_F411RE/TARGET_STM/TARGET_STM32F4/common_objects.h	Fri Aug 19 10:17:11 2016 +0100
@@ -49,6 +49,25 @@
     uint8_t inverted;
 };
 
+struct serial_s {
+    UARTName uart;
+    int index;
+    uint32_t baudrate;
+    uint32_t databits;
+    uint32_t stopbits;
+    uint32_t parity;
+    PinName pin_tx;
+    PinName pin_rx;
+#if DEVICE_SERIAL_ASYNCH
+    uint32_t events;
+#endif
+#if DEVICE_SERIAL_FC
+    uint32_t hw_flow_ctl;
+    PinName pin_rts;
+    PinName pin_cts;
+#endif
+};
+
 #include "gpio_object.h"
 
 #ifdef __cplusplus