#ifndef __SPI_H #define __SPI_H #include "sys.h" ////////////////////////////////////////////////////////////////////////////////// //This program is for educational purposes only, without the author's permission, may not be used for any other purpose //ALIENTEK STM32F4 Explorer Board //SPI Driver code //Hot Atomic @ALIENTEK //Forum: www.openedv.com //Date modified: 2014/5/6 //Version: V1.0 //All rights reserved pirated reserved. //Copyright(C) Guangzhou wing electronic technology limited company 2009-2019 //All rights reserved ////////////////////////////////////////////////////////////////////////////////// void SPI2_Init(void); //Initialize SPI1 void SPI2_SetSpeed(u8 SpeedSet); //Set SPI1 speed u8 SPI2_ReadWriteByte(u8 TxData); //SPI1 bus read/write bytes #endif