Skip to content

Commit fc2b452

Browse files
author
Matt Land
committed
worked
1 parent e1cccd3 commit fc2b452

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/atmel-samd/board_busses.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ MP_DEFINE_CONST_FUN_OBJ_0(board_spi_obj, board_spi);
103103
assert_pin_free(DEFAULT_UART_BUS_RX);
104104
assert_pin_free(DEFAULT_UART_BUS_TX);
105105

106-
common_hal_busio_uart_construct(self, DEFAULT_UART_BUS_TX, DEFAULT_UART_BUS_RX, 9600, 8, PARITY_NONE, 1, 1000, 64);
106+
const mcu_pin_obj_t* rx = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_RX);
107+
const mcu_pin_obj_t* tx = MP_OBJ_TO_PTR(DEFAULT_UART_BUS_TX);
108+
109+
common_hal_busio_uart_construct(self, tx, rx, 9600, 8, PARITY_NONE, 1, 1000, 64);
107110
uart_singleton = (mp_obj_t)self;
108111
}
109112
return uart_singleton;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy