Skip to content

Commit

Permalink
h-flow: enable CAN termination in software
Browse files Browse the repository at this point in the history
This enables setting the CAN termination by setting a parameter.
  • Loading branch information
julianoes committed Dec 3, 2024
1 parent d416cd2 commit 6664094
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/holybro/h-flow/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
// TODO figure out
#define GPIO_GETNODEINFO_JUMPER 0 //(GPIO_BOOT_CONFIG & ~GPIO_EXTI)

// CAN termination set by param, available from RC02
#define GPIO_CAN1_TERMINATION /* PA12 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTA|GPIO_PIN12)
#define GPIO_CAN_TERM GPIO_CAN1_TERMINATION

#define FLASH_BASED_PARAMS

/* High-resolution timer */
Expand Down

0 comments on commit 6664094

Please sign in to comment.