source: uKadecot/trunk/pfatfs/pffconf.h@ 154

Last change on this file since 154 was 154, checked in by coas-nagasima, 8 years ago

SDカードの中身を/~/でアクセスできるよう変更

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr; charset=SHIFT_JIS
File size: 4.1 KB
Line 
1/*---------------------------------------------------------------------------/
2/ Petit FatFs - Configuration file R0.03 (C)ChaN, 2014
3/---------------------------------------------------------------------------*/
4
5#ifndef _PFFCONF
6#define _PFFCONF 4004 /* Revision ID */
7
8/*---------------------------------------------------------------------------/
9/ Function Configurations
10/---------------------------------------------------------------------------*/
11
12#define _USE_READ 1 /* Enable pf_read() function */
13#define _USE_DIR 1 /* Enable pf_opendir() and pf_readdir() function */
14#define _USE_LSEEK 1 /* Enable pf_lseek() function */
15#define _USE_WRITE 1 /* Enable pf_write() function */
16#define _USE_IOCTL 1 /* Enable pf_ioctl() function */
17
18#define _FS_FAT12 1 /* Enable FAT12 */
19#define _FS_FAT16 1 /* Enable FAT16 */
20#define _FS_FAT32 1 /* Enable FAT32 */
21
22
23/*---------------------------------------------------------------------------/
24/ Locale and Namespace Configurations
25/---------------------------------------------------------------------------*/
26
27#define _USE_LCC 1 /* Allow lower case characters for path name */
28
29#define _CODE_PAGE 932
30/* The _CODE_PAGE specifies the code page to be used on the target system.
31/ SBCS code pages with _USE_LCC == 1 requiers a 128 byte of case conversion
32/ table. This might occupy RAM on some platforms, e.g. avr-gcc.
33/ When _USE_LCC == 0, _CODE_PAGE has no effect.
34/
35/ 932 - Japanese Shift_JIS (DBCS, OEM, Windows)
36/ 936 - Simplified Chinese GBK (DBCS, OEM, Windows)
37/ 949 - Korean (DBCS, OEM, Windows)
38/ 950 - Traditional Chinese Big5 (DBCS, OEM, Windows)
39/ 1250 - Central Europe (Windows)
40/ 1251 - Cyrillic (Windows)
41/ 1252 - Latin 1 (Windows)
42/ 1253 - Greek (Windows)
43/ 1254 - Turkish (Windows)
44/ 1255 - Hebrew (Windows)
45/ 1256 - Arabic (Windows)
46/ 1257 - Baltic (Windows)
47/ 1258 - Vietnam (OEM, Windows)
48/ 437 - U.S. (OEM)
49/ 720 - Arabic (OEM)
50/ 737 - Greek (OEM)
51/ 775 - Baltic (OEM)
52/ 850 - Multilingual Latin 1 (OEM)
53/ 858 - Multilingual Latin 1 + Euro (OEM)
54/ 852 - Latin 2 (OEM)
55/ 855 - Cyrillic (OEM)
56/ 866 - Russian (OEM)
57/ 857 - Turkish (OEM)
58/ 862 - Hebrew (OEM)
59/ 874 - Thai (OEM, Windows)
60*/
61
62
63/*---------------------------------------------------------------------------/
64/ System Configurations
65/---------------------------------------------------------------------------*/
66
67#define _WORD_ACCESS 1
68/* The _WORD_ACCESS option is an only platform dependent option. It defines
69/ which access method is used to the word data on the FAT volume.
70/
71/ 0: Byte-by-byte access. Always compatible with all platforms.
72/ 1: Word access. Do not choose this unless under both the following conditions.
73/
74/ * Address misaligned memory access is always allowed for ALL instructions.
75/ * Byte order on the memory is little-endian.
76/
77/ If it is the case, _WORD_ACCESS can also be set to 1 to improve performance and
78/ reduce code size. Following table shows an example of some processor types.
79/
80/ ARM7TDMI 0 ColdFire 0 V850E 0
81/ Cortex-M3 0 Z80 0/1 V850ES 0/1
82/ Cortex-M0 0 RX600(LE) 0/1 TLCS-870 0/1
83/ AVR 0/1 RX600(BE) 0 TLCS-900 0/1
84/ AVR32 0 RL78 0 R32C 0
85/ PIC18 0/1 SH-2 0 M16C 0/1
86/ PIC24 0 H8S 0 MSP430 0
87/ PIC32 0 H8/300H 0 x86 0/1
88*/
89
90#define _MIN_SS 512
91#define _MAX_SS 512
92/* These options configure the range of sector size to be supported. (512, 1024,
93/ 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
94/ harddisk. But a larger value may be required for on-board flash memory and some
95/ type of optical media. When _MAX_SS is larger than _MIN_SS, FatFs is configured
96/ to variable sector size and GET_SECTOR_SIZE command must be implemented to the
97/ disk_ioctl() function. */
98
99#define _USE_LFN 1
100#define _MAX_LFN 255
101/* The _USE_LFN option switches the LFN feature. */
102
103#endif /* _PFFCONF */
Note: See TracBrowser for help on using the repository browser.