Prusa3d Marlin fork
pins.h
1 #ifndef PINS_H
2 #define PINS_H
3 
4 #include "boards.h"
5 
6 #define LARGE_FLASH true
7 
8 /*****************************************************************
9 * Rambo Pin Assignments 1.3
10 ******************************************************************/
11 
12 #if MOTHERBOARD == BOARD_RAMBO_MINI_1_0 //200 - orig 102
13 #include "pins_Rambo_1_0.h"
14 #endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0
15 
16 #if MOTHERBOARD == BOARD_RAMBO_MINI_1_3 //203 - orig 302
17 #include "pins_Rambo_1_3.h"
18 #endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_3
19 
20 #if MOTHERBOARD == BOARD_EINSY_1_0a //310 - new
21 #include "pins_Einsy_1_0.h"
22 #endif //MOTHERBOARD == BOARD_EINSY_1_0a
23 
24 #ifndef KNOWN_BOARD
25 #error Unknown MOTHERBOARD value in configuration.h
26 #endif
27 
28 #if !defined(SDA_PIN) && (defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__))
29 #define SDA_PIN 20
30 #define SCL_PIN 21
31 #endif
32 
33 //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
34 #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
35 #if EXTRUDERS > 1
36  #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
37 #else
38  #define _E1_PINS
39 #endif
40 #if EXTRUDERS > 2
41  #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
42 #else
43  #define _E2_PINS
44 #endif
45 
46 #ifdef X_STOP_PIN
47  #if X_HOME_DIR < 0
48  #define X_MIN_PIN X_STOP_PIN
49  #define X_MAX_PIN -1
50  #else
51  #define X_MIN_PIN -1
52  #define X_MAX_PIN X_STOP_PIN
53  #endif
54 #endif
55 
56 #ifdef Y_STOP_PIN
57  #if Y_HOME_DIR < 0
58  #define Y_MIN_PIN Y_STOP_PIN
59  #define Y_MAX_PIN -1
60  #else
61  #define Y_MIN_PIN -1
62  #define Y_MAX_PIN Y_STOP_PIN
63  #endif
64 #endif
65 
66 #ifdef Z_STOP_PIN
67  #if Z_HOME_DIR < 0
68  #define Z_MIN_PIN Z_STOP_PIN
69  #define Z_MAX_PIN -1
70  #else
71  #define Z_MIN_PIN -1
72  #define Z_MAX_PIN Z_STOP_PIN
73  #endif
74 #endif
75 
76 #ifdef DISABLE_MAX_ENDSTOPS
77 #define X_MAX_PIN -1
78 #define Y_MAX_PIN -1
79 #define Z_MAX_PIN -1
80 #endif
81 
82 #ifdef DISABLE_MIN_ENDSTOPS
83 #define X_MIN_PIN -1
84 #define Y_MIN_PIN -1
85 #define Z_MIN_PIN -1
86 #endif
87 
88 #define SENSITIVE_PINS {0, 1, 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, PS_ON_PIN, \
89  HEATER_BED_PIN, FAN_PIN, \
90  _E0_PINS _E1_PINS _E2_PINS \
91  analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
92 
93 #endif //__PINS_H