Blink, remove compiler errors
Dependents: STM32F031_Blink_Aug17
Fork of mbed-STM32F030F4 by
Diff: common/SerialBase.cpp
- Revision:
- 12:ee1efe6181e7
- Parent:
- 0:38ccae254a29
--- a/common/SerialBase.cpp Wed Nov 19 16:28:35 2014 +0000 +++ b/common/SerialBase.cpp Sun Aug 27 18:32:02 2017 +0000 @@ -81,25 +81,28 @@ } #if DEVICE_SERIAL_FC -void SerialBase::set_flow_control(Flow type, PinName flow1, PinName flow2) { +void SerialBase::set_flow_control(Flow type, PinName flow1, PinName flow2) { + FlowControl flow_type = (FlowControl)type; + switch(type) { case RTS: - serial_set_flow_control(&_serial, flow_type, flow1, NC); + //serial_set_flow_control(&_serial, flow_type, flow1, NC); break; case CTS: - serial_set_flow_control(&_serial, flow_type, NC, flow1); + //serial_set_flow_control(&_serial, flow_type, NC, flow1); break; case RTSCTS: case Disabled: - serial_set_flow_control(&_serial, flow_type, flow1, flow2); + //serial_set_flow_control(&_serial, flow_type, flow1, flow2); break; default: break; - } + + } } #endif