1 /** 2 * @file fatfs.h 3 * @copyright Copyright (C) 2015-2018 Alibaba Group Holding Limited 4 */ 5 6 #ifndef FS_FATFS_H 7 #define FS_FATFS_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /** 14 * @addtogroup fs_fatfs fatfs 15 * fatfs API. 16 * Used for projects' inside components. Use aos api for APP. 17 * @{ 18 */ 19 20 /** 21 * fatfs register 22 * 23 * @note: switch DEV_MMC\DEV_USB\DEV_RAM to support different medium. 24 * @return 0 on success, negative error on failure 25 * 26 */ 27 int32_t fatfs_register(void); 28 29 /** 30 * fatfs unregister 31 * 32 * @return 0 on success, negative error on failure 33 * 34 */ 35 int32_t fatfs_unregister(void); 36 37 /** @} */ 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif 44 45