2016-09-27 21:28:43 +00:00
|
|
|
// Contains the bare minimum to get the test suite up and running
|
|
|
|
#ifndef ArduinoMock_h
|
|
|
|
#define ArduinoMock_h
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define HIGH 0x1
|
|
|
|
#define LOW 0x0
|
|
|
|
|
|
|
|
#define INPUT 0x0
|
|
|
|
#define OUTPUT 0x1
|
|
|
|
|
|
|
|
#define LSBFIRST 0
|
|
|
|
#define MSBFIRST 1
|
|
|
|
|
|
|
|
#define PIN_SPI_SS (17)
|
|
|
|
#define PIN_SPI_MOSI (16)
|
|
|
|
#define PIN_SPI_MISO (14)
|
|
|
|
#define PIN_SPI_SCK (15)
|
|
|
|
|
|
|
|
static const uint8_t SS = PIN_SPI_SS;
|
|
|
|
static const uint8_t MOSI = PIN_SPI_MOSI;
|
|
|
|
static const uint8_t MISO = PIN_SPI_MISO;
|
|
|
|
static const uint8_t SCK = PIN_SPI_SCK;
|
|
|
|
|
|
|
|
|
2016-09-29 19:14:42 +00:00
|
|
|
void digitalWrite(uint32_t dwPin, uint32_t dwVal);
|
|
|
|
void pinMode(uint32_t dwPin, uint32_t dwMode);
|
2016-09-27 21:28:43 +00:00
|
|
|
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
|
|
|
|
|
|
|
|
#endif
|