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.
Diff: TARGET_NUCLEO_F031K6/TARGET_STM/TARGET_STM32F0/common_objects.h
- Revision:
- 127:25aea2a3f4e3
- Parent:
- 124:2241e3a39974
- Child:
- 128:9bcdf88f62b0
--- a/TARGET_NUCLEO_F031K6/TARGET_STM/TARGET_STM32F0/common_objects.h Fri Sep 16 13:57:13 2016 +0100 +++ b/TARGET_NUCLEO_F031K6/TARGET_STM/TARGET_STM32F0/common_objects.h Fri Sep 30 16:49: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 @@ -56,4 +75,3 @@ #endif #endif -