8000 nrf5/modules: Updating machine uart module to use new hal uart interf… · ladyada/circuitpython@9ddd62e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ddd62e

Browse files
committed
nrf5/modules: Updating machine uart module to use new hal uart interface name.
1 parent 0489153 commit 9ddd62e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nrf5/modules/machine/uart.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ STATIC bool uart_rx_wait(pyb_uart_obj_t *self, uint32_t timeout) {
111111
}
112112

113113
int uart_rx_char(pyb_uart_obj_t *self) {
114-
return (int)nrf_uart_char_read();
114+
return (int)hal_uart_char_read();
115115
}
116116

117117
STATIC void uart_tx_char(pyb_uart_obj_t * self, int c) {
118-
nrf_uart_char_write((char)c);
118+
hal_uart_char_write((char)c);
119119
}
120120

121121

@@ -225,7 +225,7 @@ STATIC mp_obj_t pyb_uart_init_helper(pyb_uart_obj_t *self, mp_uint_t n_args, con
225225
uart_init.cts_pin = &MICROPY_HW_UART1_CTS;
226226
#endif
227227

228-
nrf_uart_init(&uart_init);
228+
hal_uart_init(&uart_init);
229229

230230
return mp_const_none;
231231
}

0 commit comments

Comments
 (0)
0