From f151e3a4fed25885d613ada7839b740fc4528d01 Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Sat, 1 Apr 2023 18:06:04 +0200 Subject: [PATCH] Recognize most used FaSTTUBe chips Closes #2 --- can-halal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/can-halal.h b/can-halal.h index 6767c3d..c1c5504 100644 --- a/can-halal.h +++ b/can-halal.h @@ -1,6 +1,17 @@ #ifndef CAN_HALAL_H #define CAN_HALAL_H +// Define family macros if none are defined and we recognize a chip macro +#if !defined(STM32F3) && !defined(STM32H7) +#if defined(STM32F302x6) || defined(STM32F302x8) || defined(STM32F302xB) || \ + defined(STM32F302xC) +#define STM32F3 +#endif +#if defined(STM32H7A3xx) +#define STM32H7 +#endif +#endif + #if defined(STM32F3) #include "stm32f3xx_hal.h" #define FTCAN_IS_BXCAN