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. */