31 lines
706 B
C
31 lines
706 B
C
// 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;
|
|
|
|
|
|
void digitalWrite(uint32_t dwPin, uint32_t dwVal);
|
|
void pinMode(uint32_t dwPin, uint32_t dwMode);
|
|
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
|
|
|
|
#endif |