Skip to content

patch support for Arduino SD lib #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@
// UART
extern UART Serial1;

// temporary patch to support Arduino SD library
#define SS 0
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS_ATP/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@
// UART
extern UART Serial1;

// temporary patch to support Arduino SD library
#define SS 0
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS_DK/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@
#define VARIANT_Wire_SDA I2C_SDA
#define VARIANT_Wire_SCL I2C_SCL

// temporary patch to support Arduino SD library
#define SS 0
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS_MM_PB/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@
#define VARIANT_Wire1_SDA I2C1_SDA
#define VARIANT_Wire1_SCL I2C1_SCL

// temporary patch to support Arduino SD library
#define SS SPI_CS
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS_NANO/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
// UART
extern UART Serial1;

// temporary patch to support Arduino SD library
#define SS 0
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_
6 changes: 6 additions & 0 deletions variants/SFE_ARTEMIS_THING_PLUS/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@
// UART
extern UART Serial1;

// temporary patch to support Arduino SD library
#define SS 0
#define MOSI SPI_SDO
#define MISO SPI_SDI
#define SCK SPI_CLK

#endif // _VARIANT_H_