⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdhal.h

📁 STM32的SD卡驱动及液晶驱动源代码资料
💻 H
字号:
/*****************************************************\
*河南工业大学Freescale MCU&DSP联合实验室
*文 件 名:sdhal.h
*C  P  U :STM32VBT6
*调试环境:IAR4.22 
*作    者:曾 滔
*描    述: SD卡驱动
*日    期:2008年9月12日
\*****************************************************/


#ifndef __SDHAL_H__
#define __SDHAL_H__

#include "sdconfig.h"

/* 检测卡是否完全插入  check weather card is insert entirely */
extern INT8U SD_ChkCard(void);

/* 检测卡是否写保护  check weather card is write protect */
extern INT8U 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(INT8U byte);

/* 从SPI接口接收一个字节 receive a byte from SPI interface */
extern INT8U 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);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -