33 lines
813 B
C
33 lines
813 B
C
|
#ifndef __SPI_H
|
|||
|
#define __SPI_H
|
|||
|
#include "stdint.h"
|
|||
|
//////////////////////////////////////////////////////////////////////////////////
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>ѧϰʹ<CFB0>ã<EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD>;
|
|||
|
//ALIENTEKս<4B><D5BD>STM32<33><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//SPI<50><49><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
//<2F><><EFBFBD><EFBFBD>ԭ<EFBFBD><D4AD>@ALIENTEK
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̳:www.openedv.com
|
|||
|
//<2F><EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>:2012/9/9
|
|||
|
//<2F>汾<EFBFBD><E6B1BE>V1.0
|
|||
|
//<2F><>Ȩ<EFBFBD><C8A8><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>
|
|||
|
//Copyright(C) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿƼ<D3BF><C6BC><EFBFBD><EFBFBD><EFBFBD>˾ 2009-2019
|
|||
|
//All rights reserved
|
|||
|
//////////////////////////////////////////////////////////////////////////////////
|
|||
|
|
|||
|
|
|||
|
|
|||
|
void SPI1_Init(void); //<2F><>ʼ<EFBFBD><CABC>SPI<50><49>
|
|||
|
void SPI1_SetSpeed(uint8_t SpeedSet); //<2F><><EFBFBD><EFBFBD>SPI<50>ٶ<EFBFBD>
|
|||
|
uint8_t SPI1_ReadWriteByte(uint8_t TxData);//SPI<50><49><EFBFBD>߶<EFBFBD>дһ<D0B4><D2BB><EFBFBD>ֽ<EFBFBD>
|
|||
|
|
|||
|
|
|||
|
void IWDG_Config(uint8_t prv ,uint16_t rlv);
|
|||
|
|
|||
|
|
|||
|
// ι<><CEB9>
|
|||
|
void IWDG_Feed(void);
|
|||
|
void IWDG_Init(void);
|
|||
|
|
|||
|
#endif
|
|||
|
|