SD card: commit SD_CARD_SELECT_PIN to all the board files.
For the bigger boards like RAMPS or Rumba the pin numbers were taken from Marlin. For the smaller boards, the pin is commented out.
This commit is contained in:
parent
15e8dec9b2
commit
42b96e0e27
|
|
@ -123,7 +123,7 @@ regressiontests:
|
||||||
# Generic RAMPS configuration.
|
# Generic RAMPS configuration.
|
||||||
$(MAKE) -f Makefile-AVR USER_CONFIG=testcases/config.regtest-ramps.h \
|
$(MAKE) -f Makefile-AVR USER_CONFIG=testcases/config.regtest-ramps.h \
|
||||||
MCU=atmega2560 F_CPU=16000000UL EXTRA_CFLAGS=-Werror all
|
MCU=atmega2560 F_CPU=16000000UL EXTRA_CFLAGS=-Werror all
|
||||||
# Generic Teensy2 configuration, which uses USB_SERIAL.
|
# Generic Teensy2 configuration, which uses USB_SERIAL and no SD card.
|
||||||
$(MAKE) -f Makefile-AVR USER_CONFIG=testcases/config.regtest-teensy2.h \
|
$(MAKE) -f Makefile-AVR USER_CONFIG=testcases/config.regtest-teensy2.h \
|
||||||
MCU=atmega32u4 F_CPU=16000000UL EXTRA_CFLAGS=-Werror all
|
MCU=atmega32u4 F_CPU=16000000UL EXTRA_CFLAGS=-Werror all
|
||||||
# Generic Gen3 configuration for {TX,RX}_ENABLE_PIN.
|
# Generic Gen3 configuration for {TX,RX}_ENABLE_PIN.
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO25
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO21
|
//#define DEBUG_LED_PIN DIO21
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO21
|
//#define DEBUG_LED_PIN DIO21
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO4
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO21
|
//#define DEBUG_LED_PIN DIO21
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO10
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO21
|
//#define DEBUG_LED_PIN DIO21
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO10
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
*/
|
*/
|
||||||
#define DEBUG_LED_PIN DIO13
|
#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO53
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO53
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO53
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO33
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@
|
||||||
*/
|
*/
|
||||||
//#define DEBUG_LED_PIN DIO13
|
//#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,20 @@
|
||||||
*/
|
*/
|
||||||
#define DEBUG_LED_PIN DIO13
|
#define DEBUG_LED_PIN DIO13
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
#define SD_CARD_SELECT_PIN DIO53
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
* *
|
* *
|
||||||
|
|
|
||||||
|
|
@ -327,6 +327,20 @@
|
||||||
*/
|
*/
|
||||||
#define DEBUG_LED_PIN DIO21
|
#define DEBUG_LED_PIN DIO21
|
||||||
|
|
||||||
|
/** \def SD_CARD_SELECT_PIN
|
||||||
|
|
||||||
|
Chip Select pin of the SD card.
|
||||||
|
|
||||||
|
SD cards work over SPI and have a Chip Select or Slave Select (SS) pin.
|
||||||
|
Choose this pin according to where on the board your SD card adapter is
|
||||||
|
connected. Disabling this pin also disables SD card support and makes the
|
||||||
|
firmware binary about 4.5 kB smaller.
|
||||||
|
|
||||||
|
Connecting a device to SPI actually uses 4 signal lines, the other three
|
||||||
|
pins are choosen by Teacup automatically.
|
||||||
|
*/
|
||||||
|
//#define SD_CARD_SELECT_PIN xxxx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue