PER Firmware
Loading...
Searching...
No Matches
phal_mcu.h
Go to the documentation of this file.
1
6#ifndef _PHAL_COMMON_MCU_H
7#define _PHAL_COMMON_MCU_H
8
9#include <stdbool.h>
10#include <stdint.h>
11
12// Architecture autodetect
13
14#if defined(STM32L432xx) || defined(STM32L471xx) || defined(STM32L496xx)
15#define PHAL_ARCH_L4
16#elif defined(STM32F407xx) || defined(STM32F732xx)
17#define PHAL_ARCH_F4_F7
18#elif defined(STM32G474xx)
19#define PHAL_ARCH_G4
20#else
21#error "Unable to infer PHAL_ARCH from STM32 device macro. Please define one manually if needed."
22#endif
23
24#endif // _PHAL_COMMON_MCU_H