You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
718 B

3 months ago
  1. #ifndef FILE_OPERATE_H
  2. #define FILE_OPERATE_H
  3. #include "main.h"
  4. #include "FatFs.h"
  5. #include "stdio.h"
  6. /*�����Լ��Ĵ洢�豸*/
  7. /*�û��洢�豸�����ֽ���*/
  8. #define User_Sector 512
  9. /*�û��洢�豸FatFs����*/
  10. #define User_FatFs USBHFatFS
  11. /*�û��洢�豸��·��*/
  12. #define User_SDPath USBHPath
  13. /*�û��洢�豸��ʼ������*/
  14. #define User_FatType FM_FAT32
  15. /*��������*/
  16. void Mount_FatFs(void);
  17. void FatFs_GetDiskInfo(void);
  18. void FatFs_ScanDir(const TCHAR* PathName);
  19. void FatFs_ReadTXTFile(TCHAR *filename);
  20. void FatFs_WriteTXTFile(TCHAR *filename,uint16_t year, uint8_t month, uint8_t day);
  21. void FatFs_GetFileInfo(TCHAR *filename);
  22. void FatFs_DeleteFile(TCHAR *filename);
  23. void FatFs_PrintfFileDate(WORD date, WORD time);
  24. #endif