From 2fcdadfbd12a02adcd6fade66732690172db342f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 1 Apr 2021 12:04:46 -0700 Subject: [PATCH] holybro_durandal-v1:Enable UAVCAN --- boards/holybro/durandal-v1/default.cmake | 4 ++-- boards/holybro/durandal-v1/nuttx-config/include/board.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/boards/holybro/durandal-v1/default.cmake b/boards/holybro/durandal-v1/default.cmake index 50aaadef22..8c12a1e8cf 100644 --- a/boards/holybro/durandal-v1/default.cmake +++ b/boards/holybro/durandal-v1/default.cmake @@ -50,7 +50,7 @@ px4_add_board( telemetry # all available telemetry drivers test_ppm tone_alarm -# uavcan - No H7 or FD can support in UAVCAN yet + uavcan MODULES airspeed_selector attitude_estimator_q @@ -110,7 +110,7 @@ px4_add_board( sd_bench serial_test system_time - tests # tests and test runner +# tests # tests and test runner top topic_listener tune_control diff --git a/boards/holybro/durandal-v1/nuttx-config/include/board.h b/boards/holybro/durandal-v1/nuttx-config/include/board.h index 0519b0a1b0..2a475b7b49 100644 --- a/boards/holybro/durandal-v1/nuttx-config/include/board.h +++ b/boards/holybro/durandal-v1/nuttx-config/include/board.h @@ -250,6 +250,12 @@ #define STM32_RCC_D3CCIPR_ADCSEL RCC_D3CCIPR_ADCSEL_PLL2 +/* FDCAN 1 2 clock source */ + +#define STM32_RCC_D2CCIP1R_FDCANSEL RCC_D2CCIP1R_FDCANSEL_HSE /* FDCAN 1 2 clock source */ + +#define STM32_FDCANCLK STM32_HSE_FREQUENCY + /* FLASH wait states * * ------------ ---------- -----------