Skip to content

Commit

Permalink
add software toggle CAN termination to holybro product
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentpoont2 committed Dec 13, 2024
1 parent 81ef6cc commit 2f2c1c6
Show file tree
Hide file tree
Showing 12 changed files with 4,032 additions and 0 deletions.
Binary file modified Tools/bootloaders/HolybroF4_PMU_bl.bin
Binary file not shown.
1,209 changes: 1,209 additions & 0 deletions Tools/bootloaders/HolybroF4_PMU_bl.hex

Large diffs are not rendered by default.

Binary file modified Tools/bootloaders/HolybroG4_Airspeed_bl.bin
Binary file not shown.
1,409 changes: 1,409 additions & 0 deletions Tools/bootloaders/HolybroG4_Airspeed_bl.hex

Large diffs are not rendered by default.

Binary file modified Tools/bootloaders/HolybroG4_Compass_bl.bin
Binary file not shown.
1,408 changes: 1,408 additions & 0 deletions Tools/bootloaders/HolybroG4_Compass_bl.hex

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/HolybroF4_PMU/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PC11 USART3_RX USART3
PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW

define HAL_USE_CAN TRUE
define STM32_CAN_USE_CAN1 TRUE
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/HolybroF4_PMU/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ env ROMFS_UNCOMPRESSED True
PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH

# use DNA for node allocation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ define HAL_DISABLE_LOOP_DELAY
PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW LOW

# make bl baudrate match debug baudrate for easier debugging
define BOOTLOADER_BAUDRATE 57600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ define HAL_DISABLE_LOOP_DELAY
PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW HIGH

define HAL_NO_MONITOR_THREAD

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1
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
define BOOTLOADER_BAUDRATE 57600
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/HolybroG4_Compass/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH

define HAL_DEVICE_THREAD_STACK 768

Expand Down

0 comments on commit 2f2c1c6

Please sign in to comment.