Arduino 1.0 build
This commit is contained in:
parent
c17bbb3296
commit
a295b6147e
3 changed files with 12 additions and 0 deletions
|
|
@ -17,7 +17,11 @@
|
||||||
* along with the Arduino Sd2Card Library. If not, see
|
* along with the Arduino Sd2Card Library. If not, see
|
||||||
* <http://www.gnu.org/licenses/>.
|
* <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
|
#include <Arduino.h>
|
||||||
|
#else
|
||||||
#include <WProgram.h>
|
#include <WProgram.h>
|
||||||
|
#endif
|
||||||
#include "Sd2Card.h"
|
#include "Sd2Card.h"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
#ifndef SOFTWARE_SPI
|
#ifndef SOFTWARE_SPI
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,11 @@
|
||||||
* \file
|
* \file
|
||||||
* Useful utility functions.
|
* Useful utility functions.
|
||||||
*/
|
*/
|
||||||
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
|
#include <Arduino.h>
|
||||||
|
#else
|
||||||
#include <WProgram.h>
|
#include <WProgram.h>
|
||||||
|
#endif
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
/** Store and print a string in flash memory.*/
|
/** Store and print a string in flash memory.*/
|
||||||
#define PgmPrint(x) SerialPrint_P(PSTR(x))
|
#define PgmPrint(x) SerialPrint_P(PSTR(x))
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,11 @@
|
||||||
*/
|
*/
|
||||||
#include "SdFat.h"
|
#include "SdFat.h"
|
||||||
#include <avr/pgmspace.h>
|
#include <avr/pgmspace.h>
|
||||||
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||||||
|
#include <Arduino.h>
|
||||||
|
#else
|
||||||
#include <WProgram.h>
|
#include <WProgram.h>
|
||||||
|
#endif
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// callback function for date/time
|
// callback function for date/time
|
||||||
void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL;
|
void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue