sdhal.h
来自「基于642的sd卡读写程序」· C头文件 代码 · 共 33 行
H
33 行
#include <csl_mcbsp.h>
#include <csl_stdinc.h>
/* 检测卡是否完全插入 check weather card is insert entirely */
extern Uint8 SD_ChkCard(void);
extern Uint8 SD_ChkCardWP(void);
/* 初始化访问SD卡的硬件初始化 initialize the hardware that access sd card */
extern void SD_HardWareInit(void);
/* 设置SPI的时钟小于400kHZ set the clock of SPI less than 400kHZ */
//extern void SPI_Clk400k(void);
/* 设置SPI的clock到最大值 set the clock of SPI to maximum */
//extern void SPI_ClkToMax(void);
/* 通过SPI接口发送一个字节 send a byte by SPI interface */
extern void SPI_SendByte(Uint8 byte);
/* 从SPI接口接收一个字节 receive a byte from SPI interface */
extern Uint8 SPI_RecByte(void);
/* 片选SPI从机 select the SPI slave */
//extern void SPI_CS_Assert(void);
/* 不片选SPI从机 not select the SPI slave */
//extern void SPI_CS_Deassert(void);
extern MCBSP_Handle SPI_INIT(Uint8 x); /* Function prototypes */
//extern MCBSP_Handle SPI_ClkToMax(Uint8);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?