spi.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. ******************************************************************************
  3. * @file spi.h
  4. * $Author: wdluo $
  5. * $Revision: 17 $
  6. * $Date:: 2012-07-06 11:16:48 +0800 #$
  7. * @brief SPIÇý¶¯º¯ÊýÉùÃ÷.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. *<h3><center>&copy; Copyright 2009-2012, ViewTool</center>
  12. *<center><a href="http:\\www.viewtool.com">http://www.viewtool.com</a></center>
  13. *<center>All Rights Reserved</center></h3>
  14. *
  15. ******************************************************************************
  16. */
  17. /* Define to prevent recursive inclusion -------------------------------------*/
  18. #ifndef __SPI_H
  19. #define __SPI_H
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "stm32f10x_conf.h"
  22. /* Exported Functions --------------------------------------------------------*/
  23. void SPI_Configuration(void);
  24. void SPI_WriteByte(uint8_t TxData);
  25. uint8_t SPI_ReadByte(void);
  26. void SPI_CrisEnter(void);
  27. void SPI_CrisExit(void);
  28. void SPI_CS_Select(void);
  29. void SPI_CS_Deselect(void);
  30. #endif /* __SPI_H */
  31. /*********************************END OF FILE**********************************/