HW_SPI_ATY.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * @file HW_SPI_ATY.h
  3. *
  4. * @param Project DEVICE_GENERAL_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2023 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief Familiar functions of SPI for all embedded device
  20. *
  21. * @version
  22. * - 1_01_221028 > ATY
  23. * -# Preliminary version, first Release
  24. ********************************************************************************
  25. */
  26. #ifndef __HW_SPI_ATY_H
  27. #define __HW_SPI_ATY_H
  28. #include "INCLUDE_ATY.h"
  29. #include "HW_TIMER_ATY.h"
  30. #include "HW_GPIO_ATY.h"
  31. /******************************* For user *************************************/
  32. /******************************************************************************/
  33. #ifndef __SPI_HARDWARE_ATY
  34. // #define SPI_SCL_SET_H GPIO_SET_H(I2C_SCL_PORT, I2C_SCL_PIN)
  35. #else
  36. #endif /* __SPI_HARDWARE_ATY */
  37. uint8_t SPI_Write(uint8_t* data_t, uint16_t len);
  38. uint8_t SPI_Read(uint8_t* data_t, uint16_t len);
  39. #endif /* __HW_SPI_ATY_H */
  40. /******************************** End Of File *********************************/