ChibiOS/HAL
9.0.0
hal_spi.c
Go to the documentation of this file.
1
/*
2
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
/**
18
* @file hal_spi.c
19
* @brief SPI Driver selector code.
20
*
21
* @addtogroup SPI
22
* @{
23
*/
24
25
#include "
hal.h
"
26
27
#if (HAL_USE_SPI == TRUE) || defined(__DOXYGEN__)
28
29
#if defined(HAL_LLD_SELECT_SPI_V2) || defined(__DOXYGEN__)
30
#include "
hal_spi_v2.inc
"
31
#endif
32
#if !defined(HAL_LLD_SELECT_SPI_V2) || defined(__DOXYGEN__)
33
#include "
hal_spi_v1.inc
"
34
#endif
35
36
#endif
/* HAL_USE_SPI == TRUE */
37
38
/** @} */
hal.h
HAL subsystem header.
hal_spi_v1.inc
SPI (v1) Driver code.
hal_spi_v2.inc
SPI (v2) Driver code.
os
hal
src
hal_spi.c
Generated on
for ChibiOS/HAL by
1.14.0