PER Firmware
Loading...
Searching...
No Matches
spi.h
1
#ifndef _PHAL_COMMON_SPI_H
2
#define _PHAL_COMMON_SPI_H
3
4
#include "
common/phal/phal_mcu.h
"
5
6
#if defined(PHAL_ARCH_L4)
7
#define PHAL_SPI_HEADER "common/phal_L4/spi/spi.h"
8
#elif defined(PHAL_ARCH_F4_F7)
9
#define PHAL_SPI_HEADER "common/phal_F4_F7/spi/spi.h"
10
#elif defined(PHAL_ARCH_G4)
11
#define PHAL_SPI_HEADER "common/phal_G4/spi/spi.h"
12
#else
13
#error "Unsupported PHAL architecture. Please define a known STM32xx macro."
14
#endif
15
16
#include PHAL_SPI_HEADER
17
18
#endif
// _PHAL_COMMON_SPI_H
phal_mcu.h
MCU architecture selector for PHAL layer (auto-defines PHAL_ARCH_*)
common
phal
spi.h
Generated by
1.12.0