Defines | Functions

Arduino/libraries/SdFat/SdFatUtil.h File Reference

Useful utility functions. More...

#include <WProgram.h>
#include <avr/pgmspace.h>
Include dependency graph for SdFatUtil.h:

Defines

#define NOINLINE   __attribute__((noinline))
#define PgmPrint(x)   SerialPrint_P(PSTR(x))
#define PgmPrintln(x)   SerialPrintln_P(PSTR(x))

Functions

static int FreeRam ()
static void SerialPrint_P (PGM_P str)
static void SerialPrintln_P (PGM_P str)

Detailed Description

Useful utility functions.


Define Documentation

#define NOINLINE   __attribute__((noinline))

Defined so doxygen works for function definitions.

#define PgmPrint (   x )    SerialPrint_P(PSTR(x))

Store and print a string in flash memory.

#define PgmPrintln (   x )    SerialPrintln_P(PSTR(x))

Store and print a string in flash memory followed by a CR/LF.


Function Documentation

static int FreeRam (  ) [static]

Amount of free RAM

Returns:
The number of free bytes.
static void SerialPrint_P ( PGM_P  str ) [static]

Print a string in flash memory to the serial port.

Parameters:
[in]strPointer to string stored in flash memory.
static void SerialPrintln_P ( PGM_P  str ) [static]

Print a string in flash memory followed by a CR/LF.

Parameters:
[in]strPointer to string stored in flash memory.