rtt-f030/bsp/stm32f429-apollo/drivers/drv_sdio_sd.h

20 lines
483 B
C
Raw Normal View History

#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) //<2F><>ʱʱ<CAB1><CAB1>
#define SD_DMA_MODE 0 //1<><31>DMAģʽ<C4A3><CABD>0<EFBFBD><30><EFBFBD><EFBFBD>ѯģʽ
extern SD_HandleTypeDef SDCARD_Handler; //SD<53><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern HAL_SD_CardInfoTypedef SDCardInfo; //SD<53><44><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><E1B9B9>
rt_uint8_t SD_Init(void);
rt_uint8_t SD_GetCardInfo(HAL_SD_CardInfoTypedef *cardinfo);
#endif