Recognize most used FaSTTUBe chips

Closes #2
This commit is contained in:
Jasper Blanckenburg 2023-04-01 18:06:04 +02:00
parent 66983c30d3
commit f151e3a4fe
1 changed files with 11 additions and 0 deletions

View File

@ -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