summaryrefslogtreecommitdiff
path: root/include/avr/ffconf.h
diff options
context:
space:
mode:
authorLeo C2014-11-22 13:07:04 +0100
committerLeo C2014-11-22 13:07:04 +0100
commit7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5 (patch)
tree1bb9ac83ce7fb1f6a99c6dd3445b2758330dcc95 /include/avr/ffconf.h
parent05994bd90cb36f10ff72c6a70d7cecc61b67fb2f (diff)
downloadz180-stamp-7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5.zip
Integrate fatfs. Add some sd card test commands.
Diffstat (limited to 'include/avr/ffconf.h')
-rw-r--r--include/avr/ffconf.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/avr/ffconf.h b/include/avr/ffconf.h
new file mode 100644
index 0000000..88c53d1
--- /dev/null
+++ b/include/avr/ffconf.h
@@ -0,0 +1,25 @@
+
+#undef _WORD_ACCESS
+
+#define _WORD_ACCESS 0 /* 0 or 1 */
+/* The _WORD_ACCESS option is an only platform dependent option. It defines
+/ which access method is used to the word data on the FAT volume.
+/
+/ 0: Byte-by-byte access. Always compatible with all platforms.
+/ 1: Word access. Do not choose this unless under both the following conditions.
+/
+/ * Address misaligned memory access is always allowed to ALL instructions.
+/ * Byte order on the memory is little-endian.
+/
+/ If it is the case, _WORD_ACCESS can also be set to 1 to reduce code size.
+/ Following table shows allowable settings of some processor types.
+/
+/ ARM7TDMI 0 ColdFire 0 V850E 0
+/ Cortex-M3 0 Z80 0/1 V850ES 0/1
+/ Cortex-M0 0 x86 0/1 TLCS-870 0/1
+/ AVR 0/1 RX600(LE) 0/1 TLCS-900 0/1
+/ AVR32 0 RL78 0 R32C 0
+/ PIC18 0/1 SH-2 0 M16C 0/1
+/ PIC24 0 H8S 0 MSP430 0
+/ PIC32 0 H8/300H 0 8051 0/1
+*/