2020-09-09 16:12:09 +00:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
2020-10-07 09:37:43 +00:00
|
|
|
* File Name : SPI.h
|
|
|
|
* Description : This file provides code for the configuration
|
|
|
|
* of the SPI instances.
|
2020-09-09 16:12:09 +00:00
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2020-10-07 09:37:43 +00:00
|
|
|
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
|
2020-09-09 16:12:09 +00:00
|
|
|
* All rights reserved.</center></h2>
|
|
|
|
*
|
|
|
|
* This software component is licensed by ST under Ultimate Liberty license
|
|
|
|
* SLA0044, the "License"; You may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at:
|
2020-10-07 09:37:43 +00:00
|
|
|
* www.st.com/SLA0044
|
2020-09-09 16:12:09 +00:00
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
2020-10-07 09:37:43 +00:00
|
|
|
#ifndef __spi_H
|
|
|
|
#define __spi_H
|
2020-09-09 16:12:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
2020-10-07 09:37:43 +00:00
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
/* USER CODE BEGIN Includes */
|
|
|
|
|
|
|
|
/* USER CODE END Includes */
|
|
|
|
|
|
|
|
extern SPI_HandleTypeDef hspi1;
|
|
|
|
extern SPI_HandleTypeDef hspi3;
|
|
|
|
|
|
|
|
/* USER CODE BEGIN Private defines */
|
2020-09-09 16:12:09 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
/* USER CODE END Private defines */
|
2020-09-09 16:12:09 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
void MX_SPI1_Init(void);
|
|
|
|
void MX_SPI3_Init(void);
|
2020-09-09 16:12:09 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
/* USER CODE BEGIN Prototypes */
|
2020-11-06 08:31:59 +00:00
|
|
|
void NFC_SPI_Reconfigure();
|
|
|
|
void SD_SPI_Reconfigure_Slow();
|
|
|
|
void SD_SPI_Reconfigure_Fast();
|
|
|
|
void CC1101_SPI_Reconfigure();
|
2020-10-07 09:37:43 +00:00
|
|
|
/* USER CODE END Prototypes */
|
2020-09-09 16:12:09 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-10-07 09:37:43 +00:00
|
|
|
#endif /*__ spi_H */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
2020-09-09 16:12:09 +00:00
|
|
|
|
2020-10-07 09:37:43 +00:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
2020-09-09 16:12:09 +00:00
|
|
|
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|