FRESULT dir_sdi ( DIR *dj, /* Pointer to directory object */ WORD idx /* Directory index number */ ) 根据根目录索引号idx获取相应的目录信息存储到dj结构里面 static FRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table, FR_DENIED:EOT and could not stretch */ DIR *dj, ...
FATFS是一个完全免费开源的FAT文件系统模块,专门为小型的嵌入式系统而设计。它完全用标准C语言编写,所以具有良好的硬件平台独立性,甚至可以移植到8位的单片机上而只需做简单的修改。它支持FAT12、FAT16和FAT32,支持多个存储媒介;有独立的缓冲区,可以对多个文件进行读/写,并特别对8位单片机和16位单片机做了优化。 F...
{ {ROMFS_DIRENT_DIR, "flash", RT_NULL, 0}, {ROMFS_DIRENT_DIR, "sdcard", RT_NULL, 0} }; const struct romfs_dirent romfs_root = { ROMFS_DIRENT_DIR, "/", (rt_uint8_t)_romfs_root, sizeof(_romfs_root) / sizeof(_romfs_root[0]) }; #endif #ifdef BSP_USING_SDCARD_FS /SD...
result = FR_NO_DIR; gotoERROR_OUT; } DEF_NAMBUF; INIT_NAMBUF(fs); ret = lock_fs(fs); if(ret == FALSE) { result = FR_TIMEOUT; gotoERROR_OUT; } dir_sub.obj.fs = fs; dir_sub.obj.sclust = finfo->sclst; result = dir_sdi(&dir_sub, 0); ...
sync_window() line 712 move_window() line 744 sync_fs() line 785 remove_chain() line 957 create_chain() line 1036 dir_sdi() line 1105 dir_next() line 1155, line 1162, line 1164, line 1169 find_volume() line 2251, line 2268 f_read() line 2626, line 2637, line 2669...
fresultdir_sdi( dir*dj,/*pointertodirectoryobject*/wordidx/*directoryindexnumber*/) 根据根目录索引号idx获取相应的目录信息存储到dj结构里面static fresultdir_next(/*fr_ok:succeeded,fr_no_file:endoftable,fr_denied:eotandcouldnotstretch*/
sync_window() line 712 move_window() line 744 sync_fs() line 785 remove_chain() line 957 create_chain() line 1036 dir_sdi() line 1105 dir_next() line 1155, line 1162, line 1164, line 1169 find_volume() line 2251, line 2268 f_read() line 2626, line 2637, line 2669 f_write...
11 BYTE *dir, n;12 DWORD dsc, dcl, pcl, tim = get_fattime();13 DEF_NAMEBUF;14 15 16 res = chk_mounted(&path, &dj.fs, 1);17if (res == FR_OK) { 18 INIT_BUF(dj);19 res = follow_path(&dj, path); /* Follow the file path */ 20if (res == FR...
SPI1_SCL/GPIO_8 SCL 时钟 SPI1_MISO/GPIO_12 SDI 数据输入 SPI1_MOSI/GPIO_11 SDO 数据输出 GPIO_3 CS 片选,不要错(可配置)如何使用 首先, 需要访问 https://gitee.com/wendal/Luat_Lod_Source , 如果您有码云账号, 麻烦点个star 然后, 访问附件, 下载 Luat_V0032_8955.lod 或者 Luat_V0034_8955...
f_closedir f_readdir f_truncate There does not appear to be sufficient FAT and directory locking in FatFs to make operations likef_mkdir,f_chdirandf_getcwdthread safe. If your application has a static directory tree, it should be OK in a multi-tasking application with FatFs. Otherwise, you...