mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +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
|
@ -85,10 +85,18 @@ Note: for Identifier see serialPortIdentifier_e in the source; for Function bitm
|
|||
| SERIAL_PORT_USART6 | 5 |
|
||||
| SERIAL_PORT_USART7 | 6 |
|
||||
| SERIAL_PORT_USART8 | 7 |
|
||||
| SERIAL_PORT_LPUART1 | 8 |
|
||||
| SERIAL_PORT_UART9 | 8 |
|
||||
| SERIAL_PORT_USART10 | 9 |
|
||||
| SERIAL_PORT_USB_VCP | 20 |
|
||||
| SERIAL_PORT_SOFTSERIAL1 | 30 |
|
||||
| SERIAL_PORT_SOFTSERIAL2 | 31 |
|
||||
| SERIAL_PORT_LPUART1 | 40 |
|
||||
|
||||
ID's 0-19 reserved for UARTS 1-20
|
||||
ID's 20-29 reserved for USB 1-10
|
||||
ID's 30-39 reserved for SoftSerial 1-10
|
||||
ID's 40-49 reserved for LPUART 1-10
|
||||
Other devices can be added starting from id 50.
|
||||
|
||||
### 2. Serial Port Function
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue