mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 10:11:35 +08:00
px4fmu-v5: Define UART7 for PX4IO
This commit is contained in:
committed by
Lorenz Meier
parent
2df5d23ab6
commit
e5317ed9b6
@@ -52,6 +52,20 @@
|
||||
/****************************************************************************************************
|
||||
* Definitions
|
||||
****************************************************************************************************/
|
||||
|
||||
/* PX4IO connection configuration */
|
||||
|
||||
#define BOARD_USES_PX4IO_VERSION 2
|
||||
#define PX4IO_SERIAL_DEVICE "/dev/ttyS5"
|
||||
#define PX4IO_SERIAL_TX_GPIO GPIO_UART7_TX
|
||||
#define PX4IO_SERIAL_RX_GPIO GPIO_UART7_RX
|
||||
#define PX4IO_SERIAL_BASE STM32_UART7_BASE /* hardwired on the board */
|
||||
#define PX4IO_SERIAL_VECTOR STM32_IRQ_UART7
|
||||
#define PX4IO_SERIAL_TX_DMAMAP DMAMAP_UART7_TX
|
||||
#define PX4IO_SERIAL_RX_DMAMAP DMAMAP_UART7_RX
|
||||
#define PX4IO_SERIAL_CLOCK STM32_PCLK1_FREQUENCY
|
||||
#define PX4IO_SERIAL_BITRATE 1500000 /* 1.5Mbps -> max rate for IO */
|
||||
|
||||
/* Configuration ************************************************************************************/
|
||||
|
||||
/* Un-comment to support some RC00 polarities inversions
|
||||
|
||||
Reference in New Issue
Block a user