From 7f552300815ccadd45ebb3e7f0ae72a3b2e0c4e5 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sat, 22 Nov 2014 13:07:04 +0100 Subject: Integrate fatfs. Add some sd card test commands. --- include/avr/ffconf.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/avr/ffconf.h (limited to 'include/avr/ffconf.h') 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 +*/ -- cgit v1.2.3