Prusa3d Marlin fork
SdFatConfig.h
Go to the documentation of this file.
1 /* Arduino SdFat Library
2  * Copyright (C) 2009 by William Greiman
3  *
4  * This file is part of the Arduino SdFat Library
5  *
6  * This Library is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This Library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with the Arduino SdFat Library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
24 #include "Marlin.h"
25 #ifdef SDSUPPORT
26 
27 #ifndef SdFatConfig_h
28 #define SdFatConfig_h
29 #include <stdint.h>
30 //------------------------------------------------------------------------------
38 #define USE_MULTIPLE_CARDS 0
39 //------------------------------------------------------------------------------
57 #define ENDL_CALLS_FLUSH 0
58 //------------------------------------------------------------------------------
62 #define ALLOW_DEPRECATED_FUNCTIONS 1
63 //------------------------------------------------------------------------------
68 #define FAT12_SUPPORT 0
69 //------------------------------------------------------------------------------
74 #define SPI_SD_INIT_RATE 5
75 //------------------------------------------------------------------------------
80 #define SET_SPI_SS_HIGH 1
81 //------------------------------------------------------------------------------
90 #define MEGA_SOFT_SPI 0
91 //------------------------------------------------------------------------------
95 #define USE_SOFTWARE_SPI 0
96 // define software SPI pins so Mega can use unmodified 168/328 shields
98 uint8_t const SOFT_SPI_CS_PIN = 10;
100 uint8_t const SOFT_SPI_MOSI_PIN = 11;
102 uint8_t const SOFT_SPI_MISO_PIN = 12;
104 uint8_t const SOFT_SPI_SCK_PIN = 13;
105 //------------------------------------------------------------------------------
110 #define USE_CXA_PURE_VIRTUAL 1
115 #define MAX_VFAT_ENTRIES (4)
117 #define FILENAME_LENGTH 13
119 #define LONG_FILENAME_LENGTH (13*MAX_VFAT_ENTRIES+1)
120 #endif // SdFatConfig_h
121 
122 
123 #endif
uint8_t const SOFT_SPI_CS_PIN
Definition: SdFatConfig.h:98
uint8_t const SOFT_SPI_MOSI_PIN
Definition: SdFatConfig.h:100
uint8_t const SOFT_SPI_SCK_PIN
Definition: SdFatConfig.h:104
uint8_t const SOFT_SPI_MISO_PIN
Definition: SdFatConfig.h:102