mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-10-26 22:10:17 +00:00
Discover the C++ tests and Arduino regression sketches automatically. Run the sketches against the actual library with host serial output and timing, including marine extensions, and propagate failures and timeouts to CI. Co-authored-by: Limor Fried <ladyada@users.noreply.github.com>
26 lines
450 B
C++
26 lines
450 B
C++
#ifndef GPS_TEST_SPI_H
|
|
#define GPS_TEST_SPI_H
|
|
|
|
#include "Arduino.h"
|
|
|
|
#define MSBFIRST 1
|
|
#define SPI_MODE0 0
|
|
|
|
class SPISettings {
|
|
public:
|
|
SPISettings(uint32_t, uint8_t, uint8_t) {}
|
|
};
|
|
|
|
class SPIClass {
|
|
public:
|
|
void begin() { unexpectedHardware(); }
|
|
void beginTransaction(SPISettings) { unexpectedHardware(); }
|
|
void endTransaction() { unexpectedHardware(); }
|
|
uint8_t transfer(uint8_t) {
|
|
unexpectedHardware();
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
#endif
|