mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Add UART9/10 support.
* UART9 was supported as LPUART on some H7s. * Newer 100-pin H7 CPUs support UART9 and USART10. * 100+ pin devices support higher numbered UARTS than UART10. Use USE_LPUART instead of hacking into UART9 for clarity. * LPUARTS are different from other types of UARTS. * They need different ID ranges. * They have and different capabilities. * Renumber LPUART1 to 40. 0-19 reserved for UART1-20 40-49 onwards for LPUART instances. It makes sense to treat them as a different class of UART. Just like we do for softserial, vcp, etc.
This commit is contained in:
parent
025ee87a7a
commit
263c5fa373
15 changed files with 201 additions and 26 deletions
|
@ -39,6 +39,8 @@ typedef enum {
|
|||
UARTDEV_7 = 6,
|
||||
UARTDEV_8 = 7,
|
||||
UARTDEV_9 = 8,
|
||||
UARTDEV_10 = 9,
|
||||
LPUARTDEV_1 = 10,
|
||||
} UARTDevice_e;
|
||||
|
||||
typedef struct uartPort_s {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue