add more informative error message for FDCAN peripheral config

This commit is contained in:
Kilian Bracher 2024-04-25 18:47:17 +02:00
parent 433a142732
commit 8cca72d90d
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
#elif defined(STM32H7) #elif defined(STM32H7)
#include "stm32h7xx_hal.h" #include "stm32h7xx_hal.h"
#define FTCAN_IS_FDCAN #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 #else
#error "Couldn't detect STM family" #error "Couldn't detect STM family"
#endif #endif