123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*********************************************************
- //file :hd_dev_gpio.h
- //author :libo
- //date :2020/05/10
- //version :V1.0
- //brief :GSP HAL²ãGPIO½Ó¿ÚHÎļþ
- *********************************************************/
- #ifndef MID_LITTLEFS_FLASH_H
- #define MID_LITTLEFS_FLASH_H
- /* Includes----------------------------------------------------------------------------------*/
- #include "lfs.h"
- /* Public macro------------------------------------------------------------------------------*/
- #define LFS_PAGE_SIZE 256
- #define LFS_SECT_SIZE (LFS_PAGE_SIZE*2)
- #define LFS_BLOCK_SIZE (LFS_PAGE_SIZE*16)
- #define LFS_BLOCK_CNT (1024)
- #define LFS_CACH_SIZE (LFS_SECT_SIZE)
-
- /* Public define-----------------------------------------------------------------------------*/
- /* Public typedef----------------------------------------------------------------------------*/
- /* public function---------------------------------------------------------------------------*/
- extern lfs_t lfs_flash; ;
- void mid_lfs_flash_init(void);
- int mid_lfs_flash_bootcnt(void);
- int mid_lfs_flash_boot_step(void);
- int mid_lfs_flash_get_free(void);
- int lfs_file_open_static(lfs_t *lfs, lfs_file_t *file, const char *path, int flags) ;
- #endif /*********MID_LITTLEFS_FLASH_H****************/
- /******************************the end of file************************************************/
|