mirror of https://github.com/ArduPilot/ardupilot
Add Software CAN Terminiation Support to Holybro CAN Products
This commit is contained in:
parent
eaf20db6ea
commit
8973534ab2
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -33,6 +33,7 @@ PC11 USART3_RX USART3
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
|
||||||
define HAL_USE_CAN TRUE
|
define HAL_USE_CAN TRUE
|
||||||
define STM32_CAN_USE_CAN1 TRUE
|
define STM32_CAN_USE_CAN1 TRUE
|
||||||
|
|
|
@ -61,6 +61,7 @@ env ROMFS_UNCOMPRESSED True
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
|
||||||
|
|
||||||
# use DNA for node allocation
|
# use DNA for node allocation
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@ define HAL_DISABLE_LOOP_DELAY
|
||||||
PB12 CAN2_RX CAN2
|
PB12 CAN2_RX CAN2
|
||||||
PB13 CAN2_TX CAN2
|
PB13 CAN2_TX CAN2
|
||||||
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
|
||||||
# make bl baudrate match debug baudrate for easier debugging
|
# make bl baudrate match debug baudrate for easier debugging
|
||||||
define BOOTLOADER_BAUDRATE 57600
|
define BOOTLOADER_BAUDRATE 57600
|
||||||
|
|
|
@ -75,6 +75,7 @@ define HAL_DISABLE_LOOP_DELAY
|
||||||
PB12 CAN2_RX CAN2
|
PB12 CAN2_RX CAN2
|
||||||
PB13 CAN2_TX CAN2
|
PB13 CAN2_TX CAN2
|
||||||
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
|
||||||
|
|
||||||
define HAL_NO_MONITOR_THREAD
|
define HAL_NO_MONITOR_THREAD
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ define DMA_RESERVE_SIZE 0
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
|
||||||
# make bl baudrate match debug baudrate for easier debugging
|
# make bl baudrate match debug baudrate for easier debugging
|
||||||
define BOOTLOADER_BAUDRATE 57600
|
define BOOTLOADER_BAUDRATE 57600
|
||||||
|
|
|
@ -80,6 +80,7 @@ define DMA_RESERVE_SIZE 0
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
|
||||||
|
|
||||||
define HAL_DEVICE_THREAD_STACK 768
|
define HAL_DEVICE_THREAD_STACK 768
|
||||||
|
|
||||||
|
|
|
@ -64,10 +64,12 @@ define DMA_RESERVE_SIZE 0
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
|
||||||
PB12 CAN2_RX CAN2
|
PB12 CAN2_RX CAN2
|
||||||
PB13 CAN2_TX CAN2
|
PB13 CAN2_TX CAN2
|
||||||
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB9 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
|
||||||
# make bl baudrate match debug baudrate for easier debugging
|
# make bl baudrate match debug baudrate for easier debugging
|
||||||
define BOOTLOADER_BAUDRATE 57600
|
define BOOTLOADER_BAUDRATE 57600
|
||||||
|
|
|
@ -110,10 +110,12 @@ define DMA_RESERVE_SIZE 0
|
||||||
PA11 CAN1_RX CAN1
|
PA11 CAN1_RX CAN1
|
||||||
PA12 CAN1_TX CAN1
|
PA12 CAN1_TX CAN1
|
||||||
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
|
||||||
|
|
||||||
PB12 CAN2_RX CAN2
|
PB12 CAN2_RX CAN2
|
||||||
PB13 CAN2_TX CAN2
|
PB13 CAN2_TX CAN2
|
||||||
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
|
||||||
|
PB9 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
|
||||||
|
|
||||||
define HAL_DEVICE_THREAD_STACK 768
|
define HAL_DEVICE_THREAD_STACK 768
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue