The fs_get_time function returns the current time. The Flash File System calls the function to update the file write or file access time in the File Information Record. The function packs the hour, minute, and second values in the 3 least significant bytes of the 4-byte return value. The fs_get_time function is part of RL-FlashFS. The prototype is defined in file_config.h. You can customize the function in fs_time.c note - You must complete the fs_get_time function yourself.
- To replace the default file time functions from the FlashFS library with your own, both fs_get_time and fs_get_date functions must be provided in your project.
|