mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-29 02:10:57 +00:00
Move SD Fat library out of main src
This commit is contained in:
parent
9d9c859ac1
commit
f84ff4ba7d
17 changed files with 64 additions and 116 deletions
ArduinoAddons/Arduino_1.0.x/libraries/SdFat
|
@ -17,32 +17,19 @@
|
|||
* along with the Arduino SdFat Library. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "Marlin.h"
|
||||
#ifdef SDSUPPORT
|
||||
|
||||
#ifndef SdFatUtil_h
|
||||
#define SdFatUtil_h
|
||||
/**
|
||||
* \file
|
||||
* \brief Useful utility functions.
|
||||
*/
|
||||
#include "Marlin.h"
|
||||
#include "MarlinSerial.h"
|
||||
/** Store and print a string in flash memory.*/
|
||||
#define PgmPrint(x) SerialPrint_P(PSTR(x))
|
||||
/** Store and print a string in flash memory followed by a CR/LF.*/
|
||||
#define PgmPrintln(x) SerialPrintln_P(PSTR(x))
|
||||
|
||||
namespace SdFatUtil {
|
||||
int FreeRam();
|
||||
void print_P( PGM_P str);
|
||||
void println_P( PGM_P str);
|
||||
void SerialPrint_P(PGM_P str);
|
||||
void SerialPrintln_P(PGM_P str);
|
||||
void print_P( Print *p, PGM_P str);
|
||||
void println_P( Print *p, PGM_P str);
|
||||
void SerialPrint_P(Print *p, PGM_P str);
|
||||
void SerialPrintln_P(Print *p, PGM_P str);
|
||||
}
|
||||
|
||||
using namespace SdFatUtil; // NOLINT
|
||||
#endif // #define SdFatUtil_h
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue