samd/machine_uart: Add the machine.UART class.

All board pins that have UART's assigned can be used.  Baud rate range is
75 Baud to ~2 MBaud.

No flow control yet, and only RX is buffered.  TX buffer and flow control
may be added later for SAMD51 with its larger RAM and Flash.
This commit is contained in:
robert-hh
2022-06-05 15:03:52 +02:00
committed by Damien George
parent 7d281f6165
commit b33f204529
7 changed files with 484 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ SRC_C = \
machine_adc.c \
machine_led.c \
machine_pin.c \
machine_uart.c \
main.c \
modutime.c \
modmachine.c \
@@ -144,6 +145,7 @@ SRC_QSTR += \
machine_led.c \
machine_pin.c \
machine_pwm.c \
machine_uart.c \
modutime.c \
modmachine.c \
modsamd.c \