We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8a325a + 98b6127 commit 48077daCopy full SHA for 48077da
ports/raspberrypi/common-hal/busio/UART.c
@@ -339,3 +339,18 @@ bool common_hal_busio_uart_ready_to_tx(busio_uart_obj_t *self) {
339
}
340
return uart_is_writable(self->uart);
341
342
+
343
+STATIC void pin_never_reset(uint8_t pin) {
344
+ if (pin != NO_PIN) {
345
+ never_reset_pin_number(pin);
346
+ }
347
+}
348
349
+void common_hal_busio_uart_never_reset(busio_uart_obj_t *self) {
350
+ never_reset_uart(self->uart_id);
351
+ pin_never_reset(self->tx_pin);
352
+ pin_never_reset(self->rx_pin);
353
+ pin_never_reset(self->cts_pin);
354
+ pin_never_reset(self->rs485_dir_pin);
355
+ pin_never_reset(self->rts_pin);
356
0 commit comments