10000
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 380f1d6 + 6450720 commit f4a64a2Copy full SHA for f4a64a2
ports/atmel-samd/common-hal/busio/UART.c
@@ -88,11 +88,19 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
88
continue;
89
}
90
potential_sercom = sercom_insts[sercom_index];
91
- if (poten 94FC tial_sercom->USART.CTRLA.bit.ENABLE != 0 ||
+#ifdef SAMD21
92
+ if (potential_sercom->USART.CTRLA.bit.ENABLE != 0 ||
93
!(tx->sercom[i].pad == 0 ||
94
tx->sercom[i].pad == 2)) {
95
96
97
+#endif
98
+#ifdef SAMD51
99
100
+ !(tx->sercom[i].pad == 0)) {
101
+ continue;
102
+ }
103
104
tx_pinmux = PINMUX(tx->number, (i == 0) ? MUX_C : MUX_D);
105
tx_pad = tx->sercom[i].pad;
106
if (rx == mp_const_none) {
0 commit comments