STM32H750XB_RT-THREAD/38-SAI—音频/SAI—MP3播放器/User/FATFS/drivers/fatfs_sd_sdio.h
2025-07-21 14:34:29 +08:00

28 lines
838 B
C
Raw Permalink 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 __STM32H743_FatFs_SD_H
#define __STM32H743_FatFs_SD_H
#include "stm32h7xx.h"
#include <stdio.h>
#include "diskio.h"
#include "integer.h"
#include "ff_gen_drv.h"
DSTATUS SD_initialize(BYTE lu);
DSTATUS SD_status(BYTE lu);
DRESULT SD_read(BYTE lun,//(0...)
BYTE *buff,//数据缓存区
DWORD sector, //扇区首地址
UINT count);//扇区个数(1..128)
DRESULT SD_write(BYTE lun,//(0...)
const BYTE *buff,//数据缓存区
DWORD sector, //扇区首地址
UINT count);//扇区个数(1..128)
DRESULT SD_ioctl(BYTE lun,BYTE cmd, void *buff);
#endif /* __STM32H743_FatFs_SD_H */