pins.h

Sat, 07 Nov 2015 13:24:46 +0100

author
mbayer
date
Sat, 07 Nov 2015 13:24:46 +0100
changeset 1
b584642d4f58
parent 0
2c8ba1964db7
permissions
-rw-r--r--

several modifications to support laser enable - still needs cleanup

0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
1 #ifndef _PINS_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
2 #define _PINS_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
4 /****************************************************************************************
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
5 * Sanguinololu pin assignment
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
6 *
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
7 ****************************************************************************************/
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
8 #if MOTHERBOARD == 62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
9 #define KNOWN_BOARD 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
10 #ifndef __AVR_ATmega644P__
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
11 #ifndef __AVR_ATmega1284P__
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
12 #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
13 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
14 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
16 #define X_STEP_PIN 15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
17 #define X_DIR_PIN 21
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
18 #define X_MIN_PIN 18
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
19 #define X_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
21 #define Y_STEP_PIN 22
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
22 #define Y_DIR_PIN 23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
23 #define Y_MIN_PIN 19
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
24 #define Y_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
25
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
26 #define Z_STEP_PIN 3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
27 #define Z_DIR_PIN 2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
28 #define Z_MIN_PIN 20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
29 #define Z_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
30
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
31 #define E0_STEP_PIN 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
32 #define E0_DIR_PIN 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
33
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
34 #define PROBE_PIN 20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
35
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
36 #define LED_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
37 #define FAN_PIN 12
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
38
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
39 #define PS_ON_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
40 #define KILL_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
41
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
42 #define HEATER_0_PIN 13 // (extruder)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
43 #define HEATER_1_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
44 #define HEATER_2_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
45
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
46 #ifdef REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
47 #define HEATER_BED_PIN 10 // bed (change to 10 for gate pin of MOSFET on heated bed)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
48 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
49 #define HEATER_BED_PIN 12
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
50 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
51 #define X_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
52 #define Y_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
53 #define Z_ENABLE_PIN 26
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
54 #define E0_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
55
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
56 #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
57 #define TEMP_1_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
58 #define TEMP_2_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
59 #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
60 #define SDPOWER -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
61 #define SDSS 31
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
64 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
65
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
66 /****************************************************************************************
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
67 * Melzi pin assignment
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
68 *
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
69 ****************************************************************************************/
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
70 #if MOTHERBOARD == 63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
71 #define KNOWN_BOARD 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
72 #ifndef __AVR_ATmega644P__
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
73 #ifndef __AVR_ATmega1284P__
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
74 #error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
75 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
76 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
77
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
78 #define X_STEP_PIN 15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
79 #define X_DIR_PIN 21
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
80 #define X_MIN_PIN 18
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
81 #define X_MAX_PIN -2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
82
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
83 #define Y_STEP_PIN 22
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
84 #define Y_DIR_PIN 23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
85 #define Y_MIN_PIN 19
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
86 #define Y_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
87
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
88 #define Z_STEP_PIN 3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
89 #define Z_DIR_PIN 2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
90 #define Z_MIN_PIN 20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
91 #define Z_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
92
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
93 #define E0_STEP_PIN 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
94 #define E0_DIR_PIN 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
95
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
96 #define PROBE_PIN -1 //29 on Melzi1284p A2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
97
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
98 #define LED_PIN 27
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
99 #define M571_PIN 28
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
100
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
101 #define FAN_PIN 4
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
102
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
103 #define PS_ON_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
104 #define KILL_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
105
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
106 #define HEATER_0_PIN 13 // (extruder)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
107 #define HEATER_1_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
108 #define HEATER_2_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
109 #ifdef REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
110 #define HEATER_BED_PIN 10 // bed (change to 10 for gate pin of MOSFET on heated bed)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
111 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
112 #define HEATER_BED_PIN 12
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
113 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
114 #define X_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
115 #define Y_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
116 #define Z_ENABLE_PIN 26
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
117 #define E0_ENABLE_PIN 14
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
118
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
119 #define TEMP_0_PIN 7 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
120 #define TEMP_1_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
121 #define TEMP_2_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
122 #define TEMP_BED_PIN 6 // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
123 #define SDPOWER -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
124 #define SDSS 31
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
125
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
126 #define SLAVE_CLOCK 16
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
127
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
128 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
129
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
130
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
131
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
132 #ifndef KNOWN_BOARD
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
133 #error Unknown MOTHERBOARD value in configuration.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
134 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
135
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
136 //List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
137 #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN,
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
138 #ifdef REPRAPPRO_MULTIMATERIALS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
139 #define _E1_PINS -1, -1, -1, -1,
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
140 #define _E2_PINS -1, -1, -1, -1,
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
141 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
142 #if EXTRUDERS > 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
143 #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN,
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
144 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
145 #define _E1_PINS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
146 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
147 #if EXTRUDERS > 2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
148 #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN,
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
149 #else
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
150 #define _E2_PINS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
151 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
152 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
153
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
154 #ifdef DISABLE_MAX_ENDSTOPS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
155 #define X_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
156 #define Y_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
157 #define Z_MAX_PIN -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
158 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
159
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
160 #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, LED_PIN, PS_ON_PIN, \
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
161 HEATER_BED_PIN, FAN_PIN, \
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
162 _E0_PINS _E1_PINS _E2_PINS \
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
163 TEMP_0_PIN, TEMP_1_PIN, TEMP_2_PIN, TEMP_BED_PIN }
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
164
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
165 #endif

mercurial