?? bspspi.h
字號:
#ifndef _SPI_H
#define _SPI_H
#define SDB_BSPSPI 50000
typedef struct{
char *UncachedBuffer;
int ch; /* SPI_RFIU1 ,SPI_RFIU2 */
int MaxRecvBD; /* 1 */
int MaxSendBD; /* 5 */
int MaxBufLen; /* 8 */
int BaudRate; /* 40000 */
int UcodeAdress; /* ucode adress offset from Dpram*/
int UseUcode; /*1->use ucode,0->no use*/
}SpiCfgStruct;
void SpiInit(void *pDatabuf, SpiCfgStruct *pCfg);
int SpiRead(void *pDataBuf,void *pBuf, int MaxLen);
int SpiWrite(void *pDataBuf,void *pBuf, int MaxLen);
int SpiCntrl(void *pDataBuf, int cmd, void *pParam, int maxlen);
char *SpiBspInit(int DEV, char *FreeMemPtr, SpiCfgStruct *cfg);
#endif /* _SPI_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -