Skip to content

Commit 21dd8e4

Browse files
committed
Configure NRF52 uart on interrupt attach
When attaching an irq to serial call nordic_nrf5_serial_configure. This ensures the serial is ready to receive data at the correct baudrate.
1 parent bb98ce0 commit 21dd8e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/serial_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@ void serial_irq_set(serial_t *obj, SerialIrq irq, uint32_t enable)
14371437
if (enable) {
14381438

14391439
uart_object->mask |= type;
1440+
nordic_nrf5_serial_configure(obj);
14401441

14411442
} else {
14421443

0 commit comments

Comments
 (0)