Skip to content

Commit 68d222b

Browse files
author
Filip Jagodzinski
committed
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 86149e5 commit 68d222b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

targets/TARGET_ARM_SSG/TARGET_MPS2/serial_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
157157
}
158158
uart_data[obj->index].sw_rts.pin = NC;
159159
uart_data[obj->index].sw_cts.pin = NC;
160-
serial_set_flow_control(obj, FlowControlNone, NC, NC);
161160

162161
is_stdio_uart = (uart == STDIO_UART) ? (1) : (0);
163162

0 commit comments

Comments
 (0)