Skip to content

Commit 86149e5

Browse files
author
Filip Jagodzinski
committed
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.
1 parent ed41994 commit 86149e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/serial_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ void serial_init(serial_t *obj, PinName tx, PinName rx)
153153
}
154154
uart_data[obj->index].sw_rts.pin = NC;
155155
uart_data[obj->index].sw_cts.pin = NC;
156-
serial_set_flow_control(obj, FlowControlNone, NC, NC);
157156

158157
is_stdio_uart = (uart == STDIO_UART) ? (1) : (0);
159158

0 commit comments

Comments
 (0)