Skip to content
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

Sd card change #255

Merged
merged 2 commits into from
Sep 20, 2023
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
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
Loading