#ifndef SerialFlash_h_ | #ifndef SerialFlash_h_ | ||||
#define SerialFlash_h_ | #define SerialFlash_h_ | ||||
#include <Arduino.h> | |||||
#include <SPI.h> | |||||
#include <core/Arduino.h> | |||||
#include <spi/SPI.h> | |||||
class SerialFlashFile; | class SerialFlashFile; | ||||
* THE SOFTWARE. | * THE SOFTWARE. | ||||
*/ | */ | ||||
#include "SerialFlash.h" | |||||
#include "util/SerialFlash_directwrite.h" | |||||
#include "./SerialFlash.h" | |||||
#include "./util/SerialFlash_directwrite.h" | |||||
#define CSASSERT() DIRECT_WRITE_LOW(cspin_basereg, cspin_bitmask) | #define CSASSERT() DIRECT_WRITE_LOW(cspin_basereg, cspin_bitmask) | ||||
#define CSRELEASE() DIRECT_WRITE_HIGH(cspin_basereg, cspin_bitmask) | #define CSRELEASE() DIRECT_WRITE_HIGH(cspin_basereg, cspin_bitmask) |
* THE SOFTWARE. | * THE SOFTWARE. | ||||
*/ | */ | ||||
#include "SerialFlash.h" | |||||
#include "./SerialFlash.h" | |||||
/* On-chip SerialFlash file allocation data structures: | /* On-chip SerialFlash file allocation data structures: | ||||
// Adapted from OneWire.h | // Adapted from OneWire.h | ||||
#if ARDUINO >= 100 | #if ARDUINO >= 100 | ||||
#include "Arduino.h" // for delayMicroseconds, digitalPinToBitMask, etc | |||||
#include <core/Arduino.h> // for delayMicroseconds, digitalPinToBitMask, etc | |||||
#else | #else | ||||
#include "WProgram.h" // for delayMicroseconds | |||||
#include "pins_arduino.h" // for digitalPinToBitMask, etc | |||||
#include <core/WProgram.h> // for delayMicroseconds | |||||
#include <core/pins_arduino.h> // for digitalPinToBitMask, etc | |||||
#endif | #endif | ||||
// Platform specific I/O definitions | // Platform specific I/O definitions |