Skip to content

Commit 50affa6

Browse files
committed
Invert UART polarity
1 parent 46eb924 commit 50affa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/cdc_uart.c

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ void cdc_uart_init(void) {
5353
gpio_set_function(PICOPROBE_UART_RX, GPIO_FUNC_UART);
5454
gpio_set_pulls(PICOPROBE_UART_TX, 1, 0);
5555
gpio_set_pulls(PICOPROBE_UART_RX, 1, 0);
56+
gpio_set_outover(PICOPROBE_UART_TX, GPIO_OVERRIDE_INVERT);
57+
gpio_set_inover(PICOPROBE_UART_RX, GPIO_OVERRIDE_INVERT);
5658
uart_init(PICOPROBE_UART_INTERFACE, PICOPROBE_UART_BAUDRATE);
5759
}
5860

0 commit comments

Comments
 (0)