spi.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. ******************************************************************************
  3. * @file spi.h
  4. * @brief This file contains all the function prototypes for
  5. * the spi.c file
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __SPI_H__
  21. #define __SPI_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "main.h"
  27. /* USER CODE BEGIN Includes */
  28. /* USER CODE END Includes */
  29. extern SPI_HandleTypeDef hspi1;
  30. extern SPI_HandleTypeDef hspi2;
  31. /* USER CODE BEGIN Private defines */
  32. /* USER CODE END Private defines */
  33. void MX_SPI1_Init(void);
  34. void MX_SPI2_Init(void);
  35. /* USER CODE BEGIN Prototypes */
  36. void NFC_SPI_Reconfigure();
  37. void SD_SPI_Reconfigure_Slow();
  38. void SD_SPI_Reconfigure_Fast();
  39. void CC1101_SPI_Reconfigure();
  40. void SD_SPI_Bus_To_Down_State();
  41. void SD_SPI_Bus_To_Normal_State();
  42. /* USER CODE END Prototypes */
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* __SPI_H__ */
  47. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/