Make LPC1768 pinmapping not specific to Re-ARM (#8063)
* Merging early because of build failures. See #8105 * Make LPC1768 pinmapping not specific to Re-ARM * Add HAL_PIN_TYPE and LPC1768 pin features * M43 Updates * Move pin map into pinsDebug_LPC1768.h * Incorporate comments and M226 * Fix persistent store compilation issues * Update pin features * Update MKS SBASE pins * Use native LPC1768 pin numbers in M42, M43, and M226
This commit is contained in:
@@ -665,7 +665,11 @@
|
||||
#define _Z2_PINS Z2_STEP_PIN, Z2_DIR_PIN, Z2_ENABLE_PIN,
|
||||
#endif
|
||||
|
||||
#define SENSITIVE_PINS { 0, 1, \
|
||||
#ifndef HAL_SENSITIVE_PINS
|
||||
#define HAL_SENSITIVE_PINS
|
||||
#endif
|
||||
|
||||
#define SENSITIVE_PINS { \
|
||||
X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
|
||||
Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
|
||||
Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
|
||||
@@ -673,7 +677,8 @@
|
||||
_E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS BED_PINS \
|
||||
_H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS \
|
||||
_X2_PINS _Y2_PINS _Z2_PINS \
|
||||
X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
|
||||
X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN, \
|
||||
HAL_SENSITIVE_PINS \
|
||||
}
|
||||
|
||||
#define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
|
||||
|
@@ -68,7 +68,7 @@
|
||||
|
||||
typedef struct {
|
||||
const char * const name;
|
||||
uint8_t pin;
|
||||
pin_t pin;
|
||||
bool is_digital;
|
||||
} PinInfo;
|
||||
|
||||
@@ -109,18 +109,18 @@ static void print_input_or_output(const bool isout) {
|
||||
|
||||
|
||||
// pretty report with PWM info
|
||||
inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = false, const char *start_string = "") {
|
||||
inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = false, const char *start_string = "") {
|
||||
char buffer[30]; // for the sprintf statements
|
||||
bool found = false, multi_name_pin = false;
|
||||
|
||||
for (uint8_t x = 0; x < COUNT(pin_array); x++) { // scan entire array and report all instances of this pin
|
||||
if (GET_ARRAY_PIN(x) == pin) {
|
||||
GET_PIN_INFO(pin);
|
||||
if (found) multi_name_pin = true;
|
||||
found = true;
|
||||
if (!multi_name_pin) { // report digitial and analog pin number only on the first time through
|
||||
sprintf_P(buffer, PSTR("%sPIN: %3d "), start_string, pin); // digital pin number
|
||||
sprintf_P(buffer, PSTR("%sPIN: "), start_string); // digital pin number
|
||||
SERIAL_ECHO(buffer);
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
if (IS_ANALOG(pin)) {
|
||||
sprintf_P(buffer, PSTR(" (A%2d) "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); // analog pin number
|
||||
@@ -180,8 +180,9 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = f
|
||||
} // end of for loop
|
||||
|
||||
if (!found) {
|
||||
sprintf_P(buffer, PSTR("%sPIN: %3d "), start_string, pin);
|
||||
sprintf_P(buffer, PSTR("%sPIN: "), start_string);
|
||||
SERIAL_ECHO(buffer);
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
if (IS_ANALOG(pin)) {
|
||||
sprintf_P(buffer, PSTR(" (A%2d) "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); // analog pin number
|
||||
|
@@ -25,9 +25,8 @@
|
||||
* MKS SBASE pin assignments
|
||||
*/
|
||||
|
||||
//#if !defined(TARGET_LPC1768)
|
||||
#if DISABLED(IS_REARM)
|
||||
#error "Oops! Make sure you have Re-Arm selected."
|
||||
#ifndef TARGET_LPC1768
|
||||
#error "Oops! Make sure you have LPC1768 selected."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
@@ -39,46 +38,42 @@
|
||||
|
||||
// unused
|
||||
/*
|
||||
#define D57 57
|
||||
#define D58 58
|
||||
#define PIN_P0_27 P0_27
|
||||
#define PIN_P0_28 P0_28
|
||||
*/
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 3 //10k pullup to 3.3V, 1K series
|
||||
#define X_MAX_PIN 2 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MIN_PIN 14 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MIN_PIN 19 //The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
|
||||
#define Z_MAX_PIN 18 //10k pullup to 3.3V, 1K series
|
||||
#define X_MIN_PIN P1_24 //10k pullup to 3.3V, 1K series
|
||||
#define X_MAX_PIN P1_25 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MIN_PIN P1_26 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MAX_PIN P1_27 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MIN_PIN P1_28 //The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
|
||||
#define Z_MAX_PIN P1_29 //10k pullup to 3.3V, 1K series
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 26
|
||||
#define X_DIR_PIN 28
|
||||
#define X_ENABLE_PIN 24
|
||||
#define X_STEP_PIN P2_0
|
||||
#define X_DIR_PIN P0_5
|
||||
#define X_ENABLE_PIN P0_4
|
||||
|
||||
#define Y_STEP_PIN 54
|
||||
#define Y_DIR_PIN 55
|
||||
#define Y_ENABLE_PIN 38
|
||||
#define Y_STEP_PIN P2_1
|
||||
#define Y_DIR_PIN P0_11
|
||||
#define Y_ENABLE_PIN P0_10
|
||||
|
||||
#define Z_STEP_PIN 60
|
||||
#define Z_DIR_PIN 61
|
||||
#define Z_ENABLE_PIN 56
|
||||
#define Z_STEP_PIN P2_2
|
||||
#define Z_DIR_PIN P0_20
|
||||
#define Z_ENABLE_PIN P0_19
|
||||
|
||||
#define E0_STEP_PIN 46
|
||||
#define E0_DIR_PIN 48
|
||||
#define E0_ENABLE_PIN 62
|
||||
#define E0_STEP_PIN P2_3
|
||||
#define E0_DIR_PIN P0_22
|
||||
#define E0_ENABLE_PIN P0_21
|
||||
|
||||
#define E1_STEP_PIN 36
|
||||
#define E1_DIR_PIN 34
|
||||
#define E1_ENABLE_PIN 30
|
||||
|
||||
#define X2_STEP_PIN 36
|
||||
#define X2_DIR_PIN 34
|
||||
#define X2_ENABLE_PIN 30
|
||||
#define E1_STEP_PIN P2_8
|
||||
#define E1_DIR_PIN P2_13
|
||||
#define E1_ENABLE_PIN P4_29
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -95,13 +90,13 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
#define HEATER_BED_PIN 10
|
||||
#define HEATER_0_PIN 8
|
||||
#define HEATER_1_PIN 59
|
||||
#define FAN_PIN 9
|
||||
#define HEATER_BED_PIN P2_5
|
||||
#define HEATER_0_PIN P2_7
|
||||
#define HEATER_1_PIN P2_6
|
||||
#define FAN_PIN P2_4
|
||||
|
||||
|
||||
#define PS_ON_PIN 69
|
||||
#define PS_ON_PIN P0_25
|
||||
|
||||
|
||||
//
|
||||
@@ -111,9 +106,9 @@
|
||||
// 5V
|
||||
// NC
|
||||
// GND
|
||||
#define PIN_P0_17 50
|
||||
#define PIN_P0_16 16
|
||||
#define PIN_P0_14 80
|
||||
#define PIN_P0_17 P0_17
|
||||
#define PIN_P0_16 P0_16
|
||||
#define PIN_P0_14 P0_14
|
||||
|
||||
|
||||
//
|
||||
@@ -121,19 +116,21 @@
|
||||
//
|
||||
|
||||
// GND
|
||||
#define PIN_P1_22 41
|
||||
#define PIN_P1_23 53
|
||||
#define PIN_P2_12 12
|
||||
#define PIN_P2_11 35
|
||||
#define PIN_P4_28 13
|
||||
#define PIN_P1_22 P1_22
|
||||
#define PIN_P1_23 P1_23
|
||||
#define PIN_P2_12 P2_12
|
||||
#define PIN_P2_11 P2_11
|
||||
#define PIN_P4_28 P4_28
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
|
||||
#define E_MUX0_PIN 50 // J7-4
|
||||
#define E_MUX1_PIN 16 // J7-5
|
||||
#define E_MUX2_PIN 80 // J7-6
|
||||
#if ENABLED(MK2_MULTIPLEXER)
|
||||
#define E_MUX0_PIN P0_17 // J7-4
|
||||
#define E_MUX1_PIN P0_16 // J7-5
|
||||
#define E_MUX2_PIN P0_15 // J7-6
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
@@ -150,32 +147,32 @@
|
||||
*/
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
#define BEEPER_PIN 49 // EXP1.1
|
||||
#define BTN_ENC 37 // EXP1.2
|
||||
#define BTN_EN1 31 // EXP2.5
|
||||
#define BTN_EN2 33 // EXP2.3
|
||||
#define SD_DETECT_PIN 57 // EXP2.7
|
||||
#define LCD_PINS_RS 16 // EXP1.4
|
||||
#define LCD_SDSS 58 // EXP2.4
|
||||
#define LCD_PINS_ENABLE 51 // EXP1.3
|
||||
#define LCD_PINS_D4 80 // EXP1.5
|
||||
#define BEEPER_PIN P1_31 // EXP1.1
|
||||
#define BTN_ENC P1_30 // EXP1.2
|
||||
#define BTN_EN1 P3_26 // EXP2.5
|
||||
#define BTN_EN2 P3_25 // EXP2.3
|
||||
#define SD_DETECT_PIN P0_27 // EXP2.7
|
||||
#define LCD_PINS_RS P0_16 // EXP1.4
|
||||
#define LCD_SDSS P0_28 // EXP2.4
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
||||
#define LCD_PINS_D4 P0_14 // EXP1.5
|
||||
#endif // ULTRA_LCD
|
||||
|
||||
//
|
||||
// Ethernet pins
|
||||
//
|
||||
#ifndef ULTIPANEL
|
||||
#define ENET_MDIO 71 // J12-4
|
||||
#define ENET_RX_ER 73 // J12-6
|
||||
#define ENET_RXD1 75 // J12-8
|
||||
#define ENET_MDIO P1_17 // J12-4
|
||||
#define ENET_RX_ER P1_14 // J12-6
|
||||
#define ENET_RXD1 P1_10 // J12-8
|
||||
#endif
|
||||
#define ENET_MOC 70 // J12-3
|
||||
#define REF_CLK 72 // J12-5
|
||||
#define ENET_RXD0 74 // J12-7
|
||||
#define ENET_CRS 76 // J12-9
|
||||
#define ENET_TX_EN 77 // J12-10
|
||||
#define ENET_TXD0 78 // J12-11
|
||||
#define ENET_TXD1 79 // J12-12
|
||||
#define ENET_MOC P1_16 // J12-3
|
||||
#define REF_CLK P1_15 // J12-5
|
||||
#define ENET_RXD0 P1_9 // J12-7
|
||||
#define ENET_CRS P1_8 // J12-9
|
||||
#define ENET_TX_EN P1_4 // J12-10
|
||||
#define ENET_TXD0 P1_0 // J12-11
|
||||
#define ENET_TXD1 P1_1 // J12-12
|
||||
|
||||
/**
|
||||
* PWMs
|
||||
@@ -184,25 +181,25 @@
|
||||
*
|
||||
* SERVO2 does NOT have a PWM assigned to it.
|
||||
*
|
||||
* PWM1.1 DIO4 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
||||
* PWM1.1 DIO26 E0_STEP_PIN
|
||||
* PWM1.2 DIO11 SERVO0_PIN
|
||||
* PWM1.2 DIO54 X_STEP_PIN
|
||||
* PWM1.3 DIO6 SERVO1_PIN J5-1
|
||||
* PWM1.3 DIO60 Y_STEP_PIN
|
||||
* PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 DIO46 Z_STEP_PIN
|
||||
* PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 DIO9 RAMPS_D9_PIN
|
||||
* PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 DIO10 RAMPS_D10_PIN
|
||||
* PWM1.1 P1_18 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
||||
* PWM1.1 P2_0 E0_STEP_PIN
|
||||
* PWM1.2 P1_20 SERVO0_PIN
|
||||
* PWM1.2 P2_1 X_STEP_PIN
|
||||
* PWM1.3 P1_21 SERVO1_PIN J5-1
|
||||
* PWM1.3 P2_2 Y_STEP_PIN
|
||||
* PWM1.4 P1_23 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 P2_3 Z_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 P2_4 RAMPS_D9_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 P2_5 RAMPS_D10_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
* Special pins
|
||||
* D37 - not 5V tolerant
|
||||
* D49 - not 5V tolerant
|
||||
* D57 - open collector
|
||||
* D58 - open collector
|
||||
* P1_30 - not 5V tolerant
|
||||
* P1_31 - not 5V tolerant
|
||||
* P0_27 - open collector
|
||||
* P0_28 - open collector
|
||||
*
|
||||
*/
|
||||
|
@@ -44,7 +44,7 @@
|
||||
* 7 | 11
|
||||
*/
|
||||
|
||||
#if ENABLED(IS_REARM)
|
||||
#if ENABLED(TARGET_LPC1768)
|
||||
#error "Oops! Use 'BOARD_RAMPS_RE_ARM' to build for Re-ARM."
|
||||
#endif
|
||||
|
||||
|
@@ -34,9 +34,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
//#if !defined(TARGET_LPC1768)
|
||||
#if DISABLED(IS_REARM)
|
||||
#error "Oops! Make sure you have Re-Arm selected."
|
||||
#ifndef TARGET_LPC1768
|
||||
#error "Oops! Make sure you have LPC1768 selected."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
@@ -45,56 +44,50 @@
|
||||
|
||||
#define LARGE_FLASH true
|
||||
|
||||
// unused
|
||||
#define D57 57
|
||||
#define D58 58
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 11
|
||||
#define SERVO1_PIN 6 // also on J5-1
|
||||
#define SERVO2_PIN 5
|
||||
#define SERVO3_PIN 4 // 5V output - PWM capable
|
||||
#define SERVO0_PIN P1_20
|
||||
#define SERVO1_PIN P1_21 // also on J5-1
|
||||
#define SERVO2_PIN P1_19
|
||||
#define SERVO3_PIN P1_18 // 5V output - PWM capable
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 3 //10k pullup to 3.3V, 1K series
|
||||
#define X_MAX_PIN 2 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MIN_PIN 14 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MIN_PIN 18 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MAX_PIN 19 //10k pullup to 3.3V, 1K series
|
||||
//#define Z_PROBE_PIN 1 // AUX-1
|
||||
|
||||
#define X_MIN_PIN P1_24 //10k pullup to 3.3V, 1K series
|
||||
#define X_MAX_PIN P1_25 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MIN_PIN P1_26 //10k pullup to 3.3V, 1K series
|
||||
#define Y_MAX_PIN P1_27 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MIN_PIN P1_29 //10k pullup to 3.3V, 1K series
|
||||
#define Z_MAX_PIN P1_28 //10k pullup to 3.3V, 1K series
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 54
|
||||
#define X_DIR_PIN 55
|
||||
#define X_ENABLE_PIN 38
|
||||
#define X_STEP_PIN P2_1
|
||||
#define X_DIR_PIN P0_11
|
||||
#define X_ENABLE_PIN P0_10
|
||||
|
||||
#define Y_STEP_PIN 60
|
||||
#define Y_DIR_PIN 61
|
||||
#define Y_ENABLE_PIN 56
|
||||
#define Y_STEP_PIN P2_2
|
||||
#define Y_DIR_PIN P0_20
|
||||
#define Y_ENABLE_PIN P0_19
|
||||
|
||||
#define Z_STEP_PIN 46
|
||||
#define Z_DIR_PIN 48
|
||||
#define Z_ENABLE_PIN 62
|
||||
#define Z_STEP_PIN P2_3
|
||||
#define Z_DIR_PIN P0_22
|
||||
#define Z_ENABLE_PIN P0_21
|
||||
|
||||
#define E0_STEP_PIN 26
|
||||
#define E0_DIR_PIN 28
|
||||
#define E0_ENABLE_PIN 24
|
||||
#define E0_STEP_PIN P2_0
|
||||
#define E0_DIR_PIN P0_5
|
||||
#define E0_ENABLE_PIN P0_4
|
||||
|
||||
#define E1_STEP_PIN 36
|
||||
#define E1_DIR_PIN 34
|
||||
#define E1_ENABLE_PIN 30
|
||||
#define E1_STEP_PIN P2_8
|
||||
#define E1_DIR_PIN P2_13
|
||||
#define E1_ENABLE_PIN P4_29
|
||||
|
||||
#define E2_STEP_PIN 36
|
||||
#define E2_DIR_PIN 34
|
||||
#define E2_ENABLE_PIN 30
|
||||
#define E2_STEP_PIN P2_8
|
||||
#define E2_DIR_PIN P2_13
|
||||
#define E2_ENABLE_PIN P4_29
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -131,16 +124,16 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef MOSFET_D_PIN
|
||||
#define MOSFET_D_PIN -1
|
||||
#define MOSFET_D_PIN -1
|
||||
#endif
|
||||
#ifndef RAMPS_D8_PIN
|
||||
#define RAMPS_D8_PIN 8
|
||||
#define RAMPS_D8_PIN P2_8
|
||||
#endif
|
||||
#ifndef RAMPS_D9_PIN
|
||||
#define RAMPS_D9_PIN 9
|
||||
#define RAMPS_D9_PIN P2_4
|
||||
#endif
|
||||
#ifndef RAMPS_D10_PIN
|
||||
#define RAMPS_D10_PIN 10
|
||||
#define RAMPS_D10_PIN P2_5
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN RAMPS_D10_PIN
|
||||
@@ -170,22 +163,22 @@
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#define FAN_PIN P1_18 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN 13
|
||||
#define LED_PIN P4_28
|
||||
|
||||
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
|
||||
#define FIL_RUNOUT_PIN 4
|
||||
#define FIL_RUNOUT_PIN P1_18
|
||||
|
||||
#define PS_ON_PIN 12
|
||||
#define PS_ON_PIN P2_12
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
|
||||
#if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // try to use servo connector
|
||||
#define CASE_LIGHT_PIN 4 // MUST BE HARDWARE PWM
|
||||
#define CASE_LIGHT_PIN P1_18 // MUST BE HARDWARE PWM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -197,17 +190,17 @@
|
||||
#undef SERVO1
|
||||
#undef SERVO2
|
||||
#undef SERVO3
|
||||
#define SPINDLE_LASER_ENABLE_PIN 6 // Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#define SPINDLE_LASER_ENABLE_PIN P1_21 // Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN P1_18 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_DIR_PIN P1_19
|
||||
#endif
|
||||
#endif
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX0_PIN 0 // Z_CS_PIN
|
||||
#define E_MUX1_PIN 1 // E0_CS_PIN
|
||||
#define E_MUX2_PIN 63 // E1_CS_PIN
|
||||
#define E_MUX0_PIN P0_3 // Z_CS_PIN
|
||||
#define E_MUX1_PIN P0_2 // E0_CS_PIN
|
||||
#define E_MUX2_PIN P0_26 // E1_CS_PIN
|
||||
|
||||
/**
|
||||
* LCD / Controller
|
||||
@@ -230,89 +223,76 @@
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
|
||||
#define BEEPER_PIN 37 // not 5V tolerant
|
||||
#define BEEPER_PIN P1_30 // not 5V tolerant
|
||||
|
||||
#define BTN_EN1 31 // J3-2 & AUX-4
|
||||
#define BTN_EN2 33 // J3-4 & AUX-4
|
||||
#define BTN_ENC 35 // J3-3 & AUX-4
|
||||
#define BTN_EN1 P3_26 // J3-2 & AUX-4
|
||||
#define BTN_EN2 P3_25 // J3-4 & AUX-4
|
||||
#define BTN_ENC P2_11 // J3-3 & AUX-4
|
||||
|
||||
#define SD_DETECT_PIN 49 // not 5V tolerant J3-1 & AUX-3
|
||||
#define KILL_PIN 41 // J5-4 & AUX-4
|
||||
#define LCD_PINS_RS 16 // J3-7 & AUX-4
|
||||
#define LCD_SDSS 16 // J3-7 & AUX-4
|
||||
#define LCD_BACKLIGHT_PIN 16 // J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#define LCD_PINS_ENABLE 51 // (MOSI) J3-10 & AUX-3
|
||||
#define LCD_PINS_D4 52 // (SCK) J3-9 & AUX-3
|
||||
#define SD_DETECT_PIN P1_31 // not 5V tolerant J3-1 & AUX-3
|
||||
#define KILL_PIN P1_22 // J5-4 & AUX-4
|
||||
#define LCD_PINS_RS P0_16 // J3-7 & AUX-4
|
||||
#define LCD_SDSS P0_16 // J3-7 & AUX-4
|
||||
#define LCD_BACKLIGHT_PIN P0_16 // J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#define LCD_PINS_ENABLE P0_18 // (MOSI) J3-10 & AUX-3
|
||||
#define LCD_PINS_D4 P0_15 // (SCK) J3-9 & AUX-3
|
||||
|
||||
#define DOGLCD_A0 59 // J3-8 & AUX-2
|
||||
#define DOGLCD_CS 63 // J5-3 & AUX-2
|
||||
#define DOGLCD_A0 P2_6 // J3-8 & AUX-2
|
||||
#define DOGLCD_CS P0_26 // J5-3 & AUX-2
|
||||
|
||||
#ifdef ULTIPANEL
|
||||
#define LCD_PINS_D5 71 // ENET_MDIO
|
||||
#define LCD_PINS_D6 73 // ENET_RX_ER
|
||||
#define LCD_PINS_D7 75 // ENET_RXD1
|
||||
#define LCD_PINS_D5 P1_17 // ENET_MDIO
|
||||
#define LCD_PINS_D6 P1_14 // ENET_RX_ER
|
||||
#define LCD_PINS_D7 P1_10 // ENET_RXD1
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||
#define SHIFT_OUT 51 // (MOSI) J3-10 & AUX-3
|
||||
#define SHIFT_CLK 52 // (SCK) J3-9 & AUX-3
|
||||
#define SHIFT_LD 49 // not 5V tolerant J3-1 & AUX-3
|
||||
#define SHIFT_OUT P0_18 // (MOSI) J3-10 & AUX-3
|
||||
#define SHIFT_CLK P0_15 // (SCK) J3-9 & AUX-3
|
||||
#define SHIFT_LD P1_31 // not 5V tolerant J3-1 & AUX-3
|
||||
#endif
|
||||
#else
|
||||
//#define SHIFT_CLK 31 // J3-2 & AUX-4
|
||||
//#define SHIFT_LD 33 // J3-4 & AUX-4
|
||||
//#define SHIFT_OUT 35 // J3-3 & AUX-4
|
||||
//#define SHIFT_EN 41 // J5-4 & AUX-4
|
||||
//#define SHIFT_CLK P3_26 // J3-2 & AUX-4
|
||||
//#define SHIFT_LD P3_25 // J3-4 & AUX-4
|
||||
//#define SHIFT_OUT P2_11 // J3-3 & AUX-4
|
||||
//#define SHIFT_EN P1_22 // J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM
|
||||
// When going up/down directory levels the SD card is
|
||||
// accessed but the garbage/lines are removed when the
|
||||
// LCD updates
|
||||
|
||||
#define SDSORT_LIMIT 256 // Maximum number of sorted items (10-256). Costs 27 bytes each.
|
||||
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
||||
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
|
||||
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
|
||||
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
|
||||
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
|
||||
#define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
|
||||
|
||||
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
||||
// #define LCD_SCREEN_ROT_180
|
||||
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN 37 // may change if cable changes
|
||||
#define BEEPER_PIN P1_30 // may change if cable changes
|
||||
|
||||
#define BTN_EN1 31 // J3-2 & AUX-4
|
||||
#define BTN_EN2 33 // J3-4 & AUX-4
|
||||
#define BTN_ENC 35 // J3-3 & AUX-4
|
||||
#define BTN_EN1 P3_26 // J3-2 & AUX-4
|
||||
#define BTN_EN2 P3_25 // J3-4 & AUX-4
|
||||
#define BTN_ENC P2_11 // J3-3 & AUX-4
|
||||
|
||||
#define SD_DETECT_PIN 49 // not 5V tolerant J3-1 & AUX-3
|
||||
#define KILL_PIN 41 // J5-4 & AUX-4
|
||||
#define SD_DETECT_PIN P1_31 // not 5V tolerant J3-1 & AUX-3
|
||||
#define KILL_PIN P1_22 // J5-4 & AUX-4
|
||||
|
||||
#undef DOGLCD_CS
|
||||
#define DOGLCD_CS 16
|
||||
#undef LCD_BACKLIGHT_PIN //16 // J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#undef LCD_PINS_ENABLE //51 // (MOSI) J3-10 & AUX-3
|
||||
#undef LCD_PINS_D4 //52 // (SCK) J3-9 & AUX-3
|
||||
#define DOGLCD_CS P0_16
|
||||
#undef LCD_BACKLIGHT_PIN //P0_16 // J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#undef LCD_PINS_ENABLE //P0_18 // (MOSI) J3-10 & AUX-3
|
||||
#undef LCD_PINS_D4 //P0_15 // (SCK) J3-9 & AUX-3
|
||||
|
||||
#undef LCD_PINS_D5 //59 // J3-8 & AUX-2
|
||||
#define DOGLCD_A0 59 // J3-8 & AUX-2
|
||||
#undef LCD_PINS_D6 //63 // J5-3 & AUX-2
|
||||
#undef LCD_PINS_D7 // 6 // (SERVO1) J5-1 & SERVO connector
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#undef LCD_PINS_D5 //P2_6 // J3-8 & AUX-2
|
||||
#define DOGLCD_A0 P2_6 // J3-8 & AUX-2
|
||||
#undef LCD_PINS_D6 //P0_26 // J5-3 & AUX-2
|
||||
#undef LCD_PINS_D7 //P1_21 // (SERVO1) J5-1 & SERVO connector
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
|
||||
#define STAT_LED_BLUE_PIN 63 // may change if cable changes
|
||||
#define STAT_LED_RED_PIN 6 // may change if cable changes
|
||||
#define STAT_LED_BLUE_PIN P0_26 // may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // may change if cable changes
|
||||
#endif
|
||||
|
||||
//#define MISO_PIN 50 // system defined J3-10 & AUX-3
|
||||
//#define MOSI_PIN 51 // system defined J3-10 & AUX-3
|
||||
//#define SCK_PIN 52 // system defined J3-9 & AUX-3
|
||||
//#define SS_PIN 53 // system defined J3-5 & AUX-3 - sometimes called SDSS
|
||||
//#define MISO_PIN P0_17 // system defined J3-10 & AUX-3
|
||||
//#define MOSI_PIN P0_18 // system defined J3-10 & AUX-3
|
||||
//#define SCK_PIN P0_15 // system defined J3-9 & AUX-3
|
||||
//#define SS_PIN P1_23 // system defined J3-5 & AUX-3 - sometimes called SDSS
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
// GLCD features
|
||||
@@ -329,17 +309,17 @@
|
||||
// Ethernet pins
|
||||
//
|
||||
#ifndef ULTIPANEL
|
||||
#define ENET_MDIO 71 // J12-4
|
||||
#define ENET_RX_ER 73 // J12-6
|
||||
#define ENET_RXD1 75 // J12-8
|
||||
#define ENET_MDIO P1_17 // J12-4
|
||||
#define ENET_RX_ER P1_14 // J12-6
|
||||
#define ENET_RXD1 P1_10 // J12-8
|
||||
#endif
|
||||
#define ENET_MOC 70 // J12-3
|
||||
#define REF_CLK 72 // J12-5
|
||||
#define ENET_RXD0 74 // J12-7
|
||||
#define ENET_CRS 76 // J12-9
|
||||
#define ENET_TX_EN 77 // J12-10
|
||||
#define ENET_TXD0 78 // J12-11
|
||||
#define ENET_TXD1 79 // J12-12
|
||||
#define ENET_MOC P1_16 // J12-3
|
||||
#define REF_CLK P1_15 // J12-5
|
||||
#define ENET_RXD0 P1_9 // J12-7
|
||||
#define ENET_CRS P1_8 // J12-9
|
||||
#define ENET_TX_EN P1_4 // J12-10
|
||||
#define ENET_TXD0 P1_0 // J12-11
|
||||
#define ENET_TXD1 P1_1 // J12-12
|
||||
|
||||
/**
|
||||
* PWMS
|
||||
@@ -348,47 +328,25 @@
|
||||
*
|
||||
* SERVO2 does NOT have a PWM assigned to it.
|
||||
*
|
||||
* PWM1.1 DIO4 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
||||
* PWM1.1 DIO26 E0_STEP_PIN
|
||||
* PWM1.2 DIO11 SERVO0_PIN
|
||||
* PWM1.2 DIO54 X_STEP_PIN
|
||||
* PWM1.3 DIO6 SERVO1_PIN J5-1
|
||||
* PWM1.3 DIO60 Y_STEP_PIN
|
||||
* PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 DIO46 Z_STEP_PIN
|
||||
* PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 DIO9 RAMPS_D9_PIN
|
||||
* PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 DIO10 RAMPS_D10_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
* The following pins are NOT available in a Re-ARM system
|
||||
* 7
|
||||
* 17
|
||||
* 22
|
||||
* 23
|
||||
* 25
|
||||
* 27
|
||||
* 29
|
||||
* 32
|
||||
* 39
|
||||
* 40
|
||||
* 42
|
||||
* 43
|
||||
* 44
|
||||
* 45
|
||||
* 47
|
||||
* 64
|
||||
* 65
|
||||
* 66
|
||||
* PWM1.1 P0_18 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
||||
* PWM1.1 P2_0 E0_STEP_PIN
|
||||
* PWM1.2 P1_20 SERVO0_PIN
|
||||
* PWM1.2 P2_1 X_STEP_PIN
|
||||
* PWM1.3 P1_21 SERVO1_PIN J5-1
|
||||
* PWM1.3 P2_2 Y_STEP_PIN
|
||||
* PWM1.4 P1_23 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 P2_3 Z_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 P2_4 RAMPS_D9_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 P2_5 RAMPS_D10_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
* special pins
|
||||
* D37 - not 5V tolerant
|
||||
* D49 - not 5V tolerant
|
||||
* D57 - open collector
|
||||
* D58 - open collector
|
||||
* P1_30 - not 5V tolerant
|
||||
* P1_31 - not 5V tolerant
|
||||
* P0_27 - open collector
|
||||
* P0_28 - open collector
|
||||
*
|
||||
*/
|
||||
|
Reference in New Issue
Block a user