Skip to content
Snippets Groups Projects
Commit 2537ab3b authored by Cristian Maglie's avatar Cristian Maglie Committed by Sandeep Mistry
Browse files

MKRZero: added definitions for SD library

parent f9ed436e
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,6 @@ static const uint8_t MISO = PIN_SPI_MISO;
static const uint8_t SCK = PIN_SPI_SCK;
// SPI1: Connected to SD
#define USE_SPI1
#define PIN_SPI1_MISO (29u)
#define PIN_SPI1_MOSI (26u)
#define PIN_SPI1_SCK (27u)
......@@ -119,6 +118,13 @@ static const uint8_t MOSI1 = PIN_SPI1_MOSI;
static const uint8_t MISO1 = PIN_SPI1_MISO;
static const uint8_t SCK1 = PIN_SPI1_SCK;
// Needed for SD library
#define SDCARD_SPI SPI1
#define SDCARD_MISO_PIN PIN_SPI1_MISO
#define SDCARD_MOSI_PIN PIN_SPI1_MOSI
#define SDCARD_SCK_PIN PIN_SPI1_SCK
#define SDCARD_SS_PIN PIN_SPI1_SS
// Wire Interfaces
// ---------------
#define WIRE_INTERFACES_COUNT 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment