From 6664094d249d483a94d87d2a04551f38ed5051e4 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 4 Dec 2024 12:51:21 +1300 Subject: [PATCH] h-flow: enable CAN termination in software This enables setting the CAN termination by setting a parameter. --- boards/holybro/h-flow/src/board_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/holybro/h-flow/src/board_config.h b/boards/holybro/h-flow/src/board_config.h index d2932ccc817b..923076cc3861 100644 --- a/boards/holybro/h-flow/src/board_config.h +++ b/boards/holybro/h-flow/src/board_config.h @@ -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 */