add more informative error message for FDCAN peripheral config
This commit is contained in:
parent
433a142732
commit
8cca72d90d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue