Browse Source

Add hardware defs

main
PaulStoffregen 8 years ago
parent
commit
60ada1cdf9
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      utility/Sd2Card.cpp
  2. +1
    -1
      utility/Sd2PinMap.h
  3. +1
    -1
      utility/ioreg.h

+ 1
- 1
utility/Sd2Card.cpp View File

#if defined(__MK20DX128__) || defined(__MK20DX256__)
#if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define USE_TEENSY3_SPI #define USE_TEENSY3_SPI
// Teensy 3.0 functions (copied from sdfatlib20130629) // Teensy 3.0 functions (copied from sdfatlib20130629)

+ 1
- 1
utility/Sd2PinMap.h View File

#ifndef Sd2PinMap_h #ifndef Sd2PinMap_h
#define Sd2PinMap_h #define Sd2PinMap_h
#if defined(__arm__) || defined(__MK20DX128__) || defined(__MK20DX256__)
#if defined(__arm__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#include <Arduino.h> #include <Arduino.h>

+ 1
- 1
utility/ioreg.h View File

#define DIRECT_WRITE_LOW(base, mask) ((*((base)+2)) &= ~(mask)) #define DIRECT_WRITE_LOW(base, mask) ((*((base)+2)) &= ~(mask))
#define DIRECT_WRITE_HIGH(base, mask) ((*((base)+2)) |= (mask)) #define DIRECT_WRITE_HIGH(base, mask) ((*((base)+2)) |= (mask))


#elif defined(__MK20DX128__) || defined(__MK20DX256__)
#elif defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define PIN_TO_BASEREG(pin) (portOutputRegister(pin)) #define PIN_TO_BASEREG(pin) (portOutputRegister(pin))
#define PIN_TO_BITMASK(pin) (1) #define PIN_TO_BITMASK(pin) (1)
#define IO_REG_TYPE uint8_t #define IO_REG_TYPE uint8_t

Loading…
Cancel
Save