FVP_MPS2: Fix serial_init when FC is not used

After adding DEVICE_SERIAL_FC guards to serial_api.h
serial_set_flow_control is not available. In case of this
implementation, this function is a no-op and may be safely removed.
pull/10994/head
Filip Jagodzinski 2019-07-09 16:05:04 +02:00
parent ed41994a3a
commit 86149e59d6
1 changed files with 0 additions and 1 deletions

View File

@ -153,7 +153,6 @@ void serial_init(serial_t *obj, PinName tx, PinName rx)
}
uart_data[obj->index].sw_rts.pin = NC;
uart_data[obj->index].sw_cts.pin = NC;
serial_set_flow_control(obj, FlowControlNone, NC, NC);
is_stdio_uart = (uart == STDIO_UART) ? (1) : (0);