rt-thread/bsp/stm32f429-apollo/drivers/drv_sdio_sd.h

20 lines
483 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _SDMMC_SDCARD_H
#define _SDMMC_SDCARD_H
#include <rtthread.h>
#include <board.h>
#include "stm32f4xx.h"
#include <rtdevice.h>
#define SD_TIMEOUT ((uint32_t)100000000) //超时时间
#define SD_DMA_MODE 0 //1DMA模式0查询模式
extern SD_HandleTypeDef SDCARD_Handler; //SD卡句柄
extern HAL_SD_CardInfoTypedef SDCardInfo; //SD卡信息结构体
rt_uint8_t SD_Init(void);
rt_uint8_t SD_GetCardInfo(HAL_SD_CardInfoTypedef *cardinfo);
#endif