SPI and pins cleanup

This commit is contained in:
Scott Lahteine
2020-12-30 22:00:36 -06:00
parent 811b5f8bc3
commit a9d18f0f57
20 changed files with 130 additions and 517 deletions

View File

@ -63,39 +63,39 @@
// Limit Switches
//
#ifdef X_STALL_SENSITIVITY
#define X_STOP_PIN X_DIAG_PIN
#define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
#define X_MAX_PIN E0_DIAG_PIN // X+
#define X_MAX_PIN E0_DIAG_PIN // X+
#else
#define X_MIN_PIN E0_DIAG_PIN // X+
#define X_MIN_PIN E0_DIAG_PIN // X+
#endif
#else
#define X_MIN_PIN X_DIAG_PIN // X-
#define X_MAX_PIN E0_DIAG_PIN // X+
#define X_MIN_PIN X_DIAG_PIN // X-
#define X_MAX_PIN E0_DIAG_PIN // X+
#endif
#ifdef Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#else
#define Y_MIN_PIN E1_DIAG_PIN // Y+
#define Y_MIN_PIN E1_DIAG_PIN // Y+
#endif
#else
#define Y_MIN_PIN Y_DIAG_PIN // Y-
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#define Y_MIN_PIN Y_DIAG_PIN // Y-
#define Y_MAX_PIN E1_DIAG_PIN // Y+
#endif
#ifdef Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#else
#define Z_MIN_PIN E2_DIAG_PIN // Z+
#define Z_MIN_PIN E2_DIAG_PIN // Z+
#endif
#else
#define Z_MIN_PIN Z_DIAG_PIN // Z-
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#define Z_MIN_PIN Z_DIAG_PIN // Z-
#define Z_MAX_PIN E2_DIAG_PIN // Z+
#endif
//

View File

@ -142,7 +142,7 @@
// SD support
//
#define SDIO_SUPPORT
#define SDIO_CLOCK 4800000
#define SDIO_CLOCK 4800000
//
// Misc. Functions

View File

@ -35,61 +35,61 @@
//
// Servos
//
#define SERVO0_PIN PD12 //confirmed
#define SERVO0_PIN PD12
//#define SERVO1_PIN -1
//
// Limit Switches
//
#define X_MIN_PIN PG9 //confirmed
#define Y_MIN_PIN PG10 //confirmed
#define Z_MIN_PIN PG11 //confirmed
#define X_MIN_PIN PG9
#define Y_MIN_PIN PG10
#define Z_MIN_PIN PG11
#define X_MAX_PIN PG12 //confirmed
#define Y_MAX_PIN PG13 //confirmed
#define Z_MAX_PIN PG14 //confirmed
#define X_MAX_PIN PG12
#define Y_MAX_PIN PG13
#define Z_MAX_PIN PG14
//
// Filament runout
//
#define FIL_RUNOUT_PIN PC5 //confirmed
#define FIL_RUNOUT_PIN PC5
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PG8 //confirmed
#define Z_MIN_PROBE_PIN PG8
#endif
//
// Steppers
//
#define X_STEP_PIN PF7 //confirmed
#define X_DIR_PIN PF8 //confirmed
#define X_ENABLE_PIN PF6 //confirmed
#define X_STEP_PIN PF7
#define X_DIR_PIN PF8
#define X_ENABLE_PIN PF6
#define Y_STEP_PIN PF10 //confirmed
#define Y_DIR_PIN PF11 //confirmed
#define Y_ENABLE_PIN PF9 //confirmed
#define Y_STEP_PIN PF10
#define Y_DIR_PIN PF11
#define Y_ENABLE_PIN PF9
#define Z_STEP_PIN PF13 //confirmed
#define Z_DIR_PIN PF14 //confirmed
#define Z_ENABLE_PIN PF12 //confirmed
#define Z_STEP_PIN PF13
#define Z_DIR_PIN PF14
#define Z_ENABLE_PIN PF12
#define E0_STEP_PIN PG0 //confirmed
#define E0_DIR_PIN PG1 //confirmed
#define E0_ENABLE_PIN PF15 //confirmed
#define E0_STEP_PIN PG0
#define E0_DIR_PIN PG1
#define E0_ENABLE_PIN PF15
#define E1_STEP_PIN PG3 //confirmed
#define E1_DIR_PIN PG4 //confirmed
#define E1_ENABLE_PIN PG2 //confirmed
#define E1_STEP_PIN PG3
#define E1_DIR_PIN PG4
#define E1_ENABLE_PIN PG2
//
// Temperature Sensors
//
#define TEMP_0_PIN PC0 // See below for activation of thermistor readings
#define TEMP_1_PIN PC1 // See below for activation of thermistor readings
#define TEMP_BED_PIN PC3 //confirmed
#define TEMP_BED_PIN PC3
// Lergde-S can choose thermocouple/thermistor mode in software.
// For use with thermistors, these pins must be OUT/LOW.
@ -114,13 +114,13 @@
//
// Heaters / Fans
//
#define HEATER_0_PIN PA0 //confirmed
#define HEATER_1_PIN PA1 //confirmed
#define HEATER_BED_PIN PA3 //confirmed
#define HEATER_0_PIN PA0
#define HEATER_1_PIN PA1
#define HEATER_BED_PIN PA3
#define FAN_PIN PA15 // heater 0 fan 1 //confirmed
#define FAN1_PIN PB10 // heater 1 fan 2 //confirmed
#define FAN2_PIN PF5 // heater 0 fan 2 and heater 1 fan 1 (two sockets, switched together) //confirmed
#define FAN_PIN PA15 // heater 0 fan 1
#define FAN1_PIN PB10 // heater 1 fan 2
#define FAN2_PIN PF5 // heater 0 fan 2 and heater 1 fan 1 (two sockets, switched together)
#ifndef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN PF5
@ -136,19 +136,19 @@
// LED / Lighting
//
//Lerdge-S board has two LED connectors (this is the one on the mainboard)
#define CASE_LIGHT_PIN PC7 //confirmed
#define CASE_LIGHT_PIN PC7
//on the dual extrusion addon board is a RGB connector
#define RGB_LED_R_PIN PC7 // Shared with the mainboard LED light connector (CASE_LIGHT_PIN), confirmed
#define RGB_LED_G_PIN PB0 //confirmed
#define RGB_LED_B_PIN PB1 //confirmed
#define RGB_LED_R_PIN PC7 // Shared with the mainboard LED light connector (CASE_LIGHT_PIN)
#define RGB_LED_G_PIN PB0
#define RGB_LED_B_PIN PB1
//
// Misc. Functions
//
#define SDSS PC11 // SD is working using SDIO, not sure if this definition is needed?
#define LED_PIN PC6 // Mainboard soldered green LED, confirmed
#define PS_ON_PIN PB2 // Board has a power module connector, confirmed
#define LED_PIN PC6 // Mainboard soldered green LED
#define PS_ON_PIN PB2 // Board has a power module connector
#define KILL_PIN -1 // There is no reset button on the LCD
#define POWER_LOSS_PIN -1 // PB2 could be used for this as well
@ -158,12 +158,12 @@
#define SDIO_SUPPORT
#define SDIO_CLOCK 4800000
#define SCK_PIN PC12 //confirmed working
#define MISO_PIN PC8 //confirmed working
#define MOSI_PIN PD2 //confirmed working
#define SS_PIN PC11 //confirmed working
#define SCK_PIN PC12
#define MISO_PIN PC8
#define MOSI_PIN PD2
#define SS_PIN PC11
#define SD_DETECT_PIN PG15 //confirmed
#define SD_DETECT_PIN PG15
//
// Persistent Storage
@ -190,14 +190,14 @@
//
// The LCD is initialized in FSMC mode
#define BEEPER_PIN PD13 //confirmed
#define BEEPER_PIN PD13
#define BTN_EN1 PC14 //confirmed
#define BTN_EN2 PC15 //confirmed
#define BTN_ENC PC13 //confirmed
#define BTN_EN1 PC14
#define BTN_EN2 PC15
#define BTN_ENC PC13
#define TFT_RESET_PIN PD6 //confirmed
#define TFT_BACKLIGHT_PIN PD3 //confirmed
#define TFT_RESET_PIN PD6
#define TFT_BACKLIGHT_PIN PD3
#define TFT_CS_PIN PD7 // TFT works
#define TFT_RS_PIN PD11 // TFT works

View File

@ -127,7 +127,7 @@
//
#define SDIO_SUPPORT
#define SD_DETECT_PIN PA8
#define SDIO_CLOCK 4800000
#define SDIO_CLOCK 4800000
//
// LCD / Controller