Skip to content

Commit

Permalink
Merge pull request #255 from Infineon/SD-Card-change
Browse files Browse the repository at this point in the history
Sd card change
  • Loading branch information
OlafFilies committed Sep 20, 2023
2 parents 901967a + bd14a2f commit 6ab96ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions libraries/SPI/src/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
//#define USE_SW_SPI

// Define USE_XMC_RELAX_KIT_SD allows to use the SD Lib to communicate with a SD Card over
// the on-board SD Card Slot
//#define USE_XMC_RELAX_KIT_SD
// the on-board SD Card Slot. This feature is only available on XMC4700 RelaxKits.
#if defined(XMC4700_Relax_Kit)
#define USE_XMC_RELAX_KIT_SD
#endif


#define SPI_MODE0 0x00
#define SPI_MODE1 0x01
Expand Down
8 changes: 4 additions & 4 deletions variants/XMC4700/config/XMC4700_Relax_Kit/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ extern uint8_t MOSI;
extern uint8_t MISO;
extern uint8_t SCK;

#define PIN_SPI_SS_SD 28
#define PIN_SPI_MOSI_SD 29
#define PIN_SPI_MISO_SD 30
#define PIN_SPI_SCK_SD 31
#define PIN_SPI_SS_SD 26
#define PIN_SPI_MOSI_SD 27
#define PIN_SPI_MISO_SD 28
#define PIN_SPI_SCK_SD 29

static const uint8_t SS_SD = PIN_SPI_SS_SD;
static const uint8_t MOSI_SD = PIN_SPI_MOSI_SD;
Expand Down

0 comments on commit 6ab96ad

Please sign in to comment.