mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +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
|
@ -71,6 +71,9 @@ static uartDmaopt_t uartDmaopt[] = {
|
|||
#ifdef USE_UART9
|
||||
{ UARTDEV_9, UART9_TX_DMA_OPT, UART9_RX_DMA_OPT },
|
||||
#endif
|
||||
#ifdef USE_UART10
|
||||
{ UARTDEV_10, UART10_TX_DMA_OPT, UART10_RX_DMA_OPT },
|
||||
#endif
|
||||
};
|
||||
|
||||
void pgResetFn_serialUartConfig(serialUartConfig_t *config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue