From b464f32bc9bd4351ad36d65a9fe2e69d665f5bf0 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 8 Mar 2024 21:56:11 -0500 Subject: [PATCH] flexibility --- firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h b/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h index c1279abd48..882d47eb5d 100644 --- a/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h +++ b/firmware/hw_layer/ports/stm32/mcuconf_common_f4_f7.h @@ -66,9 +66,18 @@ /* * CAN driver system settings. */ +#ifndef STM32_CAN_USE_CAN1 #define STM32_CAN_USE_CAN1 TRUE +#endif + +#ifndef STM32_CAN_USE_CAN2 #define STM32_CAN_USE_CAN2 TRUE +#endif + +#ifndef STM32_CAN_USE_CAN3 #define STM32_CAN_USE_CAN3 FALSE +#ifndef + #define STM32_CAN_CAN1_IRQ_PRIORITY PRECISE_SCHEDULING_TIMER_PRIORITY + 7 #define STM32_CAN_CAN2_IRQ_PRIORITY PRECISE_SCHEDULING_TIMER_PRIORITY + 7 #define STM32_CAN_CAN3_IRQ_PRIORITY PRECISE_SCHEDULING_TIMER_PRIORITY + 7