Test_LCD_SiemensS65_SDFAT

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:719KB
下载次数:2
上传日期:2011-03-10 15:00:58
上 传 者tomzor
说明:  example LCD SiemensS65 SDFAT

文件列表:
Test_LCD_SiemensS65_SDFAT (0, 2011-03-10)
Test_LCD_SiemensS65_SDFAT\diskio.crf (3341, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\diskio.d (91, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\diskio.o (12160, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\ExtDll.iex (19, 2011-03-05)
Test_LCD_SiemensS65_SDFAT\FatFS (0, 2010-03-29)
Test_LCD_SiemensS65_SDFAT\FatFS\src (0, 2010-03-29)
Test_LCD_SiemensS65_SDFAT\FatFS\src\diskio.c (4371, 2009-03-29)
Test_LCD_SiemensS65_SDFAT\FatFS\src\diskio.h (1948, 2010-03-25)
Test_LCD_SiemensS65_SDFAT\FatFS\src\diskio.h.bak (1919, 2010-03-25)
Test_LCD_SiemensS65_SDFAT\FatFS\src\ff.c (106925, 2010-03-29)
Test_LCD_SiemensS65_SDFAT\FatFS\src\ff.h (31842, 2010-03-13)
Test_LCD_SiemensS65_SDFAT\FatFS\src\ffconf.h (6915, 2010-03-13)
Test_LCD_SiemensS65_SDFAT\FatFS\src\integer.h (835, 2010-03-25)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option (0, 2010-03-29)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\cc932.c (249495, 2009-06-05)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\cc936.c (724207, 2009-06-05)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\cc949.c (567659, 2009-06-05)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\cc950.c (450671, 2009-06-05)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\ccsbcs.c (30143, 2010-03-12)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\syncobj.c (4058, 2010-02-12)
Test_LCD_SiemensS65_SDFAT\FatFS\src\option\syscall.c (5017, 2010-03-13)
Test_LCD_SiemensS65_SDFAT\include (0, 2011-03-10)
Test_LCD_SiemensS65_SDFAT\include\main.h (2605, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\include\stm32f10x_conf.h (5534, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\include\stm32f10x_it.h (3266, 2007-11-21)
Test_LCD_SiemensS65_SDFAT\include\utils.c (1456, 2009-08-10)
Test_LCD_SiemensS65_SDFAT\include\utils.h (1446, 2009-10-09)
Test_LCD_SiemensS65_SDFAT\JLink Regs CM3.txt (497, 2011-03-05)
Test_LCD_SiemensS65_SDFAT\JLinkLog.txt (5326, 2011-03-05)
Test_LCD_SiemensS65_SDFAT\JLinkSettings.ini (375, 2011-03-05)
Test_LCD_SiemensS65_SDFAT\Output (0, 2011-03-08)
Test_LCD_SiemensS65_SDFAT\Output\main.__i (395, 2011-03-08)
Test_LCD_SiemensS65_SDFAT\source (0, 2010-08-27)
Test_LCD_SiemensS65_SDFAT\source\cortexm3_macro.s (10308, 2008-07-14)
Test_LCD_SiemensS65_SDFAT\source\hw_config.h (2107, 2007-11-21)
Test_LCD_SiemensS65_SDFAT\source\lcd_ls020.c (24224, 2009-10-30)
Test_LCD_SiemensS65_SDFAT\source\LCD_LS020.h (4242, 2010-04-02)
... ...

March 13, 2010 FatFs R0.08.dev.1 1. LFN Feature with dynamic working buffer on the HEAP #define _USE_LFN 3 // Setting 3 enables this feature Also user defined OS dependent memory functions, ff_memalloc and ff_memfree, are required. There is a sample code in the syscall.c. 2. File Shareing Feature (File Lock) #define _FS_SHARE Setting _FS_SHARE to 1 or larger enables the file shareing feature and the value determins number of open files per volume. It can work regardless setting of reentrant feature. The following sequense is an example with _FS_SHARE == 3. f_open(&f1 , "foo.txt", FA_READ); // FR_OK f_open(&f2 , "foo.txt", FA_READ); // FR_OK f_open(&f3 , "foo.txt", FA_WRITE); // FR_LOCKED f_close(&f1); // FR_OK f_close(&f2); // FR_OK f_open(&f3 , "foo.txt", FA_WRITE); // FR_OK f_open(&f1 , "foo.txt", FA_READ); // FR_LOCKED f_unlink("foo.txt"); // FR_LOCKED f_rename("foo.txt", "new.txt"); // FR_LOCKED f_close(&f3); // FR_OK f_open(&f1 , "foo1.txt", FA_READ); // FR_OK f_open(&f2 , "foo2.txt", FA_READ); // FR_OK f_open(&f3 , "foo3.txt", FA_READ); // FR_OK f_open(&f4 , "foo4.txt", FA_READ); // FR_TOO_MANY_OPEN_FILES 3. Fast Seek with On-memory Cluster Link Map FRESULT f_lseek ( FIL* FileObject, /* Pointer to the file object structure */ DWORD Offset, /* File offset in unit of byte */ DWORD *Map /* Pointer to the cluster link map (NULL:normal seek) */ ); The f_lseek function has been changed to implement fast seek feature. But the additional 3rd argument is ignored unless fast seek feature is enabled (_USE_FASTSEEK == 1). To use this feature, give a pointer to the working buffer to store the cluster link map to the 3rd argument. DWORD seektbl[10]; // Cluster link map table. A file fragmented in N requires (N + 1) * 2 items). res = f_oepn(&file, "foo.avi", FA_READ); // Open a file if (res != FR_OK) die(res); res = f_lseek(&file, somewhere, 0); // This is a normal seek seektbl[0] = 10; // Set table size (1st item) res = f_lseek(&file, CREATE_LINKMAP, seektbl); // Create link map table if (res != FR_OK) die(res); for (i = 1, cc = 0; seektbl[i]; cc += seektbl[i], i += 2) ; printf("%d clusters, fragmented in %d.\n", cc, i / 2); // Show status .... res = f_lseek(&file, somewhere, seektbl); // Seek without FAT access

近期下载者

相关文件


收藏者