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:
125:2e9cc70d1897
Parent:
123:b0220dba8be7
Child:
128:9bcdf88f62b0
--- a/TARGET_DISCO_L476VG/TARGET_STM/TARGET_STM32L4/common_objects.h	Fri Aug 19 10:17:11 2016 +0100
+++ b/TARGET_DISCO_L476VG/TARGET_STM/TARGET_STM32L4/common_objects.h	Wed Aug 31 18:09:46 2016 +0100
@@ -49,6 +49,25 @@
     uint8_t inverted;
 };
 
+struct serial_s {
+    UARTName uart;
+    int index; // Used by irq
+    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