From f44ef045222596e4910ee1effcf9ffb6612be4f4 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 19 Sep 2020 15:46:01 -0700 Subject: [PATCH] enable CAN --- firmware/cfg/halconf.h | 2 +- firmware/cfg/mcuconf.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/firmware/cfg/halconf.h b/firmware/cfg/halconf.h index 8072dd9..56fdc3a 100644 --- a/firmware/cfg/halconf.h +++ b/firmware/cfg/halconf.h @@ -51,7 +51,7 @@ * @brief Enables the CAN subsystem. */ #if !defined(HAL_USE_CAN) || defined(__DOXYGEN__) -#define HAL_USE_CAN FALSE +#define HAL_USE_CAN TRUE #endif /** diff --git a/firmware/cfg/mcuconf.h b/firmware/cfg/mcuconf.h index 1618e3a..b94d0c0 100644 --- a/firmware/cfg/mcuconf.h +++ b/firmware/cfg/mcuconf.h @@ -81,6 +81,12 @@ #define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2 #define STM32_ADC_ADC1_DMA_STREAM STM32_DMA_STREAM_ID(1, 1) +/* + * CAN driver system settings. + */ +#define STM32_CAN_USE_CAN1 TRUE +#define STM32_CAN_CAN1_IRQ_PRIORITY 3 + /* * GPT driver system settings. */