Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

46 lignes
636 B

  1. /*
  2. * File: SDCardMgr.h
  3. * Author: JF
  4. *
  5. * Created on May 18, 2017, 8:20 PM
  6. */
  7. #ifndef SDCARDMGR_H
  8. #define SDCARDMGR_H
  9. #ifdef USE_FATFS
  10. //#include "FatFS/diskio.h"
  11. #else
  12. #include "FileSystem/fileio_lfn.h"
  13. #endif
  14. enum eSDCardStates
  15. {
  16. SD_CARD_INIT_STATE,
  17. SD_CARD_MOUNT_DRIVE_STATE,
  18. SD_CARD_READY_STATE,
  19. SD_CARD_ERROR_MOUNTING_STATE
  20. };
  21. #ifdef USE_FATFS
  22. #else
  23. void FILEIO_GetTimestamp(FILEIO_TIMESTAMP * timeStamp);
  24. //void FILEIO_SETUP_HW();
  25. #endif
  26. int InitSDCard();
  27. int MountDrive();
  28. int IsDriveDetected();
  29. int IsDriveMounted();
  30. int TickSDCard();
  31. int ListRootDir();
  32. //void FILEIO_
  33. #endif /* SDCARDMGR_H */