Skip to content

Commit bda5a2c

Browse files
committed
Change stdio default to 9600 baud for SDK automated test suite
1 parent c7f5bb6 commit bda5a2c

File tree

1 file changed

+4
-3
lines changed
  • libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC43XX

1 file changed

+4
-3
lines changed

libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC43XX/serial_api.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
134134
| 0 << 2; // Rx Line Status irq enable
135135

136136
// set default baud rate and format
137-
is_stdio_uart = (uart == STDIO_UART) ? (1) : (0);
138-
serial_baud (obj, is_stdio_uart ? 115200 : 9600);
137+
serial_baud (obj, 9600);
139138
serial_format(obj, 8, ParityNone, 1);
140139

141140
// pinout the chosen uart
@@ -159,7 +158,9 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
159158
uart_data[obj->index].sw_rts.pin = NC;
160159
uart_data[obj->index].sw_cts.pin = NC;
161160
serial_set_flow_control(obj, FlowControlNone, NC, NC);
162-
161+
162+
is_stdio_uart = (uart == STDIO_UART) ? (1) : (0);
163+
163164
if (is_stdio_uart) {
164165
stdio_uart_inited = 1;
165166
memcpy(&stdio_uart, obj, sizeof(serial_t));

0 commit comments

Comments
 (0)