#ifndef __SPI2_H #define __SPI2_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 SPI2 void SPI2_SetSpeed(u8 SpeedSet); //Set SPI2 speed u8 SPI2_ReadWriteByte(u16 TxData, u16* RxData, u32 t_us); //SPI2 bus read/write bytes #endif