From 8cca72d90d38ff48924c6a0d0e265bf9a9644457 Mon Sep 17 00:00:00 2001 From: kbracher Date: Thu, 25 Apr 2024 18:47:17 +0200 Subject: [PATCH] add more informative error message for FDCAN peripheral config --- can-halal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/can-halal.h b/can-halal.h index c1c5504..8351424 100644 --- a/can-halal.h +++ b/can-halal.h @@ -19,6 +19,9 @@ #elif defined(STM32H7) #include "stm32h7xx_hal.h" #define FTCAN_IS_FDCAN +#ifndef FTCAN_NUM_FILTERS + #error "Please configure the number of filters in CubeMX, and then add a compiler define for FTCAN_NUM_FILTERS" +#endif #else #error "Couldn't detect STM family" #endif