more clean up

This commit is contained in:
hathach 2018-09-26 02:12:06 +07:00
parent eba80f7a99
commit 76d6fb03f0
1 changed files with 0 additions and 4 deletions

View File

@ -241,12 +241,8 @@ uint32_t common_hal_busio_uart_get_baudrate(busio_uart_obj_t *self) {
}
void common_hal_busio_uart_set_baudrate(busio_uart_obj_t *self, uint32_t baudrate) {
#ifndef NRF52840_XXAA
mp_raise_NotImplementedError(translate("busio.UART not yet implemented"));
#else
self->baudrate = baudrate;
nrf_uarte_baudrate_set(self->uarte.p_reg, get_nrf_baud(baudrate));
#endif
}
uint32_t common_hal_busio_uart_rx_characters_available(busio_uart_obj_t *self) {