- 这里规定了各种uart/usart的波特率、bufsize等配置,
boards/px4/fmu-v5/nuttx-config/nsh/defconfig
CONFIG_STM32F7_UART4=y
CONFIG_UART4_BAUD=57600
CONFIG_UART4_RXBUFSIZE=600
CONFIG_UART4_RXDMA=y
CONFIG_UART4_TXBUFSIZE=1500
- 在每一种板子的default.cmake中定义了串口名称与ttys的对应关系
(例如,pixhawk4的路径是boards/px4/fmu-v5/default.cmake)
SERIAL_PORTS
GPS1:/dev/ttyS0
TEL1:/dev/ttyS1
TEL2:/dev/ttyS2
TEL4:/dev/ttyS3
- 这里介绍了端口名字,设备名字,串口号之间的对应关系
Pixhawk 4 | PX4 User Guide
https://docs.px4.io/master/en/flight_controller/pixhawk4.html