File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
variants/XMC4700/config/XMC4700_Relax_Kit Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 3535// #define USE_SW_SPI
3636
3737// Define USE_XMC_RELAX_KIT_SD allows to use the SD Lib to communicate with a SD Card over
38- // the on-board SD Card Slot
39- // #define USE_XMC_RELAX_KIT_SD
38+ // the on-board SD Card Slot. This feature is only available on XMC4700 RelaxKits.
39+ #if defined(XMC4700_Relax_Kit)
40+ #define USE_XMC_RELAX_KIT_SD
41+ #endif
42+
4043
4144#define SPI_MODE0 0x00
4245#define SPI_MODE1 0x01
Original file line number Diff line number Diff line change @@ -86,10 +86,10 @@ extern uint8_t MOSI;
8686extern uint8_t MISO ;
8787extern uint8_t SCK ;
8888
89- #define PIN_SPI_SS_SD 28
90- #define PIN_SPI_MOSI_SD 29
91- #define PIN_SPI_MISO_SD 30
92- #define PIN_SPI_SCK_SD 31
89+ #define PIN_SPI_SS_SD 26
90+ #define PIN_SPI_MOSI_SD 27
91+ #define PIN_SPI_MISO_SD 28
92+ #define PIN_SPI_SCK_SD 29
9393
9494static const uint8_t SS_SD = PIN_SPI_SS_SD ;
9595static const uint8_t MOSI_SD = PIN_SPI_MOSI_SD ;
You can’t perform that action at this time.
0 commit comments