|
@@ -0,0 +1,397 @@
|
|
1
|
+#ifndef __CONFIGURATION_H
|
|
2
|
+#define __CONFIGURATION_H
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+// This determines the communication speed of the printer
|
|
7
|
+//#define BAUDRATE 250000
|
|
8
|
+#define BAUDRATE 115200
|
|
9
|
+//#define BAUDRATE 230400
|
|
10
|
+
|
|
11
|
+#define EXTRUDERS 1
|
|
12
|
+
|
|
13
|
+// Frequency limit
|
|
14
|
+// See nophead's blog for more info
|
|
15
|
+// Not working O
|
|
16
|
+//#define XY_FREQUENCY_LIMIT 15
|
|
17
|
+
|
|
18
|
+// Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end
|
|
19
|
+// of the buffer and all stops. This should not be much greater than zero and should only be changed
|
|
20
|
+// if unwanted behavior is observed on a user's machine when running at very slow speeds.
|
|
21
|
+#define MINIMUM_PLANNER_SPEED 2.0 // (mm/sec)
|
|
22
|
+
|
|
23
|
+// BASIC SETTINGS: select your board type, thermistor type, axis scaling, and endstop configuration
|
|
24
|
+
|
|
25
|
+//// The following define selects which electronics board you have. Please choose the one that matches your setup
|
|
26
|
+// MEGA/RAMPS up to 1.2 = 3,
|
|
27
|
+// RAMPS 1.3 = 33
|
|
28
|
+// Gen6 = 5,
|
|
29
|
+// Sanguinololu 1.2 and above = 62
|
|
30
|
+// Gen7 = 77,
|
|
31
|
+// Ultimaker = 7,
|
|
32
|
+// Teensylu = 8
|
|
33
|
+#define MOTHERBOARD 77
|
|
34
|
+
|
|
35
|
+//===========================================================================
|
|
36
|
+//=============================Thermal Settings ============================
|
|
37
|
+//===========================================================================
|
|
38
|
+
|
|
39
|
+//// Thermistor settings:
|
|
40
|
+// 1 is 100k thermistor
|
|
41
|
+// 2 is 200k thermistor
|
|
42
|
+// 3 is mendel-parts thermistor
|
|
43
|
+// 4 is 10k thermistor
|
|
44
|
+// 5 is ParCan supplied 104GT-2 100K
|
|
45
|
+// 6 is EPCOS 100k
|
|
46
|
+// 7 is 100k Honeywell thermistor 135-104LAG-J01
|
|
47
|
+
|
|
48
|
+#define THERMISTORHEATER_0 1
|
|
49
|
+//#define THERMISTORHEATER_1 1
|
|
50
|
+//#define THERMISTORHEATER_2 1
|
|
51
|
+
|
|
52
|
+#define HEATER_0_USES_THERMISTOR
|
|
53
|
+//#define HEATER_1_USES_THERMISTOR
|
|
54
|
+//#define HEATER_2_USES_THERMISTOR
|
|
55
|
+//#define HEATER_0_USES_AD595
|
|
56
|
+//#define HEATER_1_USES_AD595
|
|
57
|
+//#define HEATER_2_USES_AD595
|
|
58
|
+
|
|
59
|
+// Select one of these only to define how the bed temp is read.
|
|
60
|
+#define THERMISTORBED 1
|
|
61
|
+#define BED_USES_THERMISTOR
|
|
62
|
+//#define BED_LIMIT_SWITCHING
|
|
63
|
+#ifdef BED_LIMIT_SWITCHING
|
|
64
|
+#define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
|
|
65
|
+#endif
|
|
66
|
+//#define BED_USES_AD595
|
|
67
|
+
|
|
68
|
+#define BED_CHECK_INTERVAL 5000 //ms
|
|
69
|
+
|
|
70
|
+//// Heating sanity check:
|
|
71
|
+// This waits for the watchperiod in milliseconds whenever an M104 or M109 increases the target temperature
|
|
72
|
+// If the temperature has not increased at the end of that period, the target temperature is set to zero.
|
|
73
|
+// It can be reset with another M104/M109
|
|
74
|
+//#define WATCHPERIOD 20000 //20 seconds
|
|
75
|
+
|
|
76
|
+// Actual temperature must be close to target for this long before M109 returns success
|
|
77
|
+#define TEMP_RESIDENCY_TIME 30 // (seconds)
|
|
78
|
+#define TEMP_HYSTERESIS 3 // (C°) range of +/- temperatures considered "close" to the target one
|
|
79
|
+
|
|
80
|
+//// The minimal temperature defines the temperature below which the heater will not be enabled
|
|
81
|
+//#define HEATER_0_MINTEMP 5
|
|
82
|
+//#define HEATER_1_MINTEMP 5
|
|
83
|
+//#define HEATER_2_MINTEMP 5
|
|
84
|
+//#define BED_MINTEMP 5
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+// When temperature exceeds max temp, your heater will be switched off.
|
|
88
|
+// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
|
|
89
|
+// You should use MINTEMP for thermistor short/failure protection.
|
|
90
|
+#define HEATER_0_MAXTEMP 275
|
|
91
|
+//#define HEATER_1_MAXTEMP 275
|
|
92
|
+//#define HEATER_2_MAXTEMP 275
|
|
93
|
+//#define BED_MAXTEMP 150
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+// Wait for Cooldown
|
|
97
|
+// This defines if the M109 call should not block if it is cooling down.
|
|
98
|
+// example: From a current temp of 220, you set M109 S200.
|
|
99
|
+// if CooldownNoWait is defined M109 will not wait for the cooldown to finish
|
|
100
|
+#define CooldownNoWait true
|
|
101
|
+
|
|
102
|
+// Heating is finished if a temperature close to this degree shift is reached
|
|
103
|
+#define HEATING_EARLY_FINISH_DEG_OFFSET 1 //Degree
|
|
104
|
+
|
|
105
|
+// PID settings:
|
|
106
|
+// Uncomment the following line to enable PID support.
|
|
107
|
+#define PIDTEMP
|
|
108
|
+#define PID_MAX 255 // limits current to nozzle; 255=full current
|
|
109
|
+#ifdef PIDTEMP
|
|
110
|
+//#define PID_DEBUG // Sends debug data to the serial port.
|
|
111
|
+//#define PID_OPENLOOP 1 // Puts PID in open loop. M104 sets the output power in %
|
|
112
|
+#define PID_INTEGRAL_DRIVE_MAX 255 //limit for the integral term
|
|
113
|
+#define K1 0.95 //smoothing factor withing the PID
|
|
114
|
+#define PID_dT 0.128 //sampling period of the PID
|
|
115
|
+
|
|
116
|
+//To develop some PID settings for your machine, you can initiall follow
|
|
117
|
+// the Ziegler-Nichols method.
|
|
118
|
+// set Ki and Kd to zero.
|
|
119
|
+// heat with a defined Kp and see if the temperature stabilizes
|
|
120
|
+// ideally you do this graphically with repg.
|
|
121
|
+// the PID_CRITIAL_GAIN should be the Kp at which temperature oscillatins are not dampned out/decreas in amplitutde
|
|
122
|
+// PID_SWING_AT_CRITIAL is the time for a full period of the oscillations at the critical Gain
|
|
123
|
+// usually further manual tunine is necessary.
|
|
124
|
+
|
|
125
|
+#define PID_CRITIAL_GAIN 50
|
|
126
|
+#define PID_SWING_AT_CRITIAL 47 //seconds
|
|
127
|
+
|
|
128
|
+//#define PID_PI //no differentail term
|
|
129
|
+#define PID_PID //normal PID
|
|
130
|
+
|
|
131
|
+#ifdef PID_PID
|
|
132
|
+//PID according to Ziegler-Nichols method
|
|
133
|
+// #define DEFAULT_Kp (0.6*PID_CRITIAL_GAIN)
|
|
134
|
+// #define DEFAULT_Ki (2*Kp/PID_SWING_AT_CRITIAL*PID_dT)
|
|
135
|
+// #define DEFAULT_Kd (PID_SWING_AT_CRITIAL/8./PID_dT)
|
|
136
|
+
|
|
137
|
+// Ultitmaker
|
|
138
|
+#define DEFAULT_Kp 22.2
|
|
139
|
+#define DEFAULT_Ki (1.25*PID_dT)
|
|
140
|
+#define DEFAULT_Kd (99/PID_dT)
|
|
141
|
+
|
|
142
|
+// Makergear
|
|
143
|
+// #define DEFAULT_Kp 7.0
|
|
144
|
+// #define DEFAULT_Ki 0.1
|
|
145
|
+// #define DEFAULT_Kd 12
|
|
146
|
+
|
|
147
|
+// Mendel Parts V9 on 12V
|
|
148
|
+// #define DEFAULT_Kp 63.0
|
|
149
|
+// #define DEFAULT_Ki (2.25*PID_dT)
|
|
150
|
+// #define DEFAULT_Kd (440/PID_dT)
|
|
151
|
+#endif
|
|
152
|
+
|
|
153
|
+#ifdef PID_PI
|
|
154
|
+//PI according to Ziegler-Nichols method
|
|
155
|
+#define DEFAULT_Kp (PID_CRITIAL_GAIN/2.2)
|
|
156
|
+#define DEFAULT_Ki (1.2*Kp/PID_SWING_AT_CRITIAL*PID_dT)
|
|
157
|
+#define DEFAULT_Kd (0)
|
|
158
|
+#endif
|
|
159
|
+
|
|
160
|
+// this adds an experimental additional term to the heatingpower, proportional to the extrusion speed.
|
|
161
|
+// if Kc is choosen well, the additional required power due to increased melting should be compensated.
|
|
162
|
+#define PID_ADD_EXTRUSION_RATE
|
|
163
|
+#ifdef PID_ADD_EXTRUSION_RATE
|
|
164
|
+#define DEFAULT_Kc (1) //heatingpower=Kc*(e_speed)
|
|
165
|
+#endif
|
|
166
|
+#endif // PIDTEMP
|
|
167
|
+
|
|
168
|
+// extruder run-out prevention.
|
|
169
|
+//if the machine is idle, and the temperature over MINTEMP, every couple of SECONDS some filament is extruded
|
|
170
|
+//#define EXTRUDER_RUNOUT_PREVENT
|
|
171
|
+#define EXTRUDER_RUNOUT_MINTEMP 190
|
|
172
|
+#define EXTRUDER_RUNOUT_SECONDS 30.
|
|
173
|
+#define EXTRUDER_RUNOUT_ESTEPS 14. //mm filament
|
|
174
|
+#define EXTRUDER_RUNOUT_SPEED 1500. //extrusion speed
|
|
175
|
+#define EXTRUDER_RUNOUT_EXTRUDE 100
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+//===========================================================================
|
|
179
|
+//=============================Mechanical Settings===========================
|
|
180
|
+//===========================================================================
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+// Endstop Settings
|
|
184
|
+#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
|
|
185
|
+
|
|
186
|
+// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
|
|
187
|
+const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
|
188
|
+const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
|
189
|
+const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
|
|
190
|
+// For optos H21LOB set to true, for Mendel-Parts newer optos TCST2103 set to false
|
|
191
|
+
|
|
192
|
+#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
|
193
|
+
|
|
194
|
+// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
|
|
195
|
+#define X_ENABLE_ON 0
|
|
196
|
+#define Y_ENABLE_ON 0
|
|
197
|
+#define Z_ENABLE_ON 0
|
|
198
|
+#define E_ENABLE_ON 0 // For all extruders
|
|
199
|
+
|
|
200
|
+// Disables axis when it's not being used.
|
|
201
|
+#define DISABLE_X false
|
|
202
|
+#define DISABLE_Y false
|
|
203
|
+#define DISABLE_Z false
|
|
204
|
+#define DISABLE_E false // For all extruders
|
|
205
|
+
|
|
206
|
+// Inverting axis direction
|
|
207
|
+//#define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
|
|
208
|
+//#define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
|
|
209
|
+//#define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
|
|
210
|
+//#define INVERT_E*_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false, used for all extruders
|
|
211
|
+
|
|
212
|
+#define INVERT_X_DIR false // for Mendel set to false, for Orca set to true
|
|
213
|
+#define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
|
|
214
|
+#define INVERT_Z_DIR false // for Mendel set to false, for Orca set to true
|
|
215
|
+#define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
|
216
|
+#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
|
217
|
+#define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
|
|
218
|
+
|
|
219
|
+//// ENDSTOP SETTINGS:
|
|
220
|
+// Sets direction of endstops when homing; 1=MAX, -1=MIN
|
|
221
|
+#define X_HOME_DIR -1
|
|
222
|
+#define Y_HOME_DIR -1
|
|
223
|
+#define Z_HOME_DIR -1
|
|
224
|
+
|
|
225
|
+#define min_software_endstops true //If true, axis won't move to coordinates less than zero.
|
|
226
|
+#define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
|
|
227
|
+#define X_MAX_LENGTH 205
|
|
228
|
+#define Y_MAX_LENGTH 205
|
|
229
|
+#define Z_MAX_LENGTH 200
|
|
230
|
+
|
|
231
|
+//// MOVEMENT SETTINGS
|
|
232
|
+#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
|
|
233
|
+#define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)
|
|
234
|
+
|
|
235
|
+//homing hits the endstop, then retracts by this distance, before it tries to slowly bump again:
|
|
236
|
+#define X_HOME_RETRACT_MM 5
|
|
237
|
+#define Y_HOME_RETRACT_MM 5
|
|
238
|
+#define Z_HOME_RETRACT_MM 1
|
|
239
|
+#define QUICK_HOME //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
|
|
240
|
+
|
|
241
|
+#define AXIS_RELATIVE_MODES {false, false, false, false}
|
|
242
|
+
|
|
243
|
+#define MAX_STEP_FREQUENCY 40000 // Max step frequency for Ultimaker (5000 pps / half step)
|
|
244
|
+
|
|
245
|
+// default settings
|
|
246
|
+
|
|
247
|
+#define DEFAULT_AXIS_STEPS_PER_UNIT {78.7402,78.7402,200*8/3,760*1.1} // default steps per unit for ultimaker
|
|
248
|
+//#define DEFAULT_AXIS_STEPS_PER_UNIT {40, 40, 3333.92, 360} //sells mendel with v9 extruder
|
|
249
|
+//#define DEFAULT_AXIS_STEPS_PER_UNIT {80.3232, 80.8900, 2284.7651, 757.2218} // SAE Prusa w/ Wade extruder
|
|
250
|
+#define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
|
|
251
|
+#define DEFAULT_MAX_ACCELERATION {9000,9000,100,10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
|
|
252
|
+
|
|
253
|
+#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
|
|
254
|
+#define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
|
|
255
|
+
|
|
256
|
+#define DEFAULT_MINIMUMFEEDRATE 0.0 // minimum feedrate
|
|
257
|
+#define DEFAULT_MINTRAVELFEEDRATE 0.0
|
|
258
|
+
|
|
259
|
+// minimum time in microseconds that a movement needs to take if the buffer is emptied. Increase this number if you see blobs while
|
|
260
|
+//printing high speed & high detail. It will slowdown on the detailed stuff.
|
|
261
|
+#define DEFAULT_MINSEGMENTTIME 20000 // Obsolete delete this
|
|
262
|
+#define DEFAULT_XYJERK 20.0 // (mm/sec)
|
|
263
|
+#define DEFAULT_ZJERK 0.4 // (mm/sec)
|
|
264
|
+
|
|
265
|
+// If defined the movements slow down when the look ahead buffer is only half full
|
|
266
|
+#define SLOWDOWN
|
|
267
|
+
|
|
268
|
+//default stepper release if idle
|
|
269
|
+#define DEFAULT_STEPPER_DEACTIVE_TIME 60
|
|
270
|
+#define DEFAULT_STEPPER_DEACTIVE_COMMAND "M84 X Y E" //z stays powered
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+//===========================================================================
|
|
274
|
+//=============================Additional Features===========================
|
|
275
|
+//===========================================================================
|
|
276
|
+
|
|
277
|
+// EEPROM
|
|
278
|
+// the microcontroller can store settings in the EEPROM, e.g. max velocity...
|
|
279
|
+// M500 - stores paramters in EEPROM
|
|
280
|
+// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
|
|
281
|
+// M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
|
|
282
|
+//define this to enable eeprom support
|
|
283
|
+#define EEPROM_SETTINGS
|
|
284
|
+//to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
|
|
285
|
+// please keep turned on if you can.
|
|
286
|
+#define EEPROM_CHITCHAT
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+// The hardware watchdog should halt the Microcontroller, in case the firmware gets stuck somewhere. However:
|
|
290
|
+// the Watchdog is not working well, so please only enable this for testing
|
|
291
|
+// this enables the watchdog interrupt.
|
|
292
|
+//#define USE_WATCHDOG
|
|
293
|
+//#ifdef USE_WATCHDOG
|
|
294
|
+// you cannot reboot on a mega2560 due to a bug in he bootloader. Hence, you have to reset manually, and this is done hereby:
|
|
295
|
+//#define RESET_MANUAL
|
|
296
|
+//#define WATCHDOG_TIMEOUT 4 //seconds
|
|
297
|
+//#endif
|
|
298
|
+
|
|
299
|
+// extruder advance constant (s2/mm3)
|
|
300
|
+//
|
|
301
|
+// advance (steps) = STEPS_PER_CUBIC_MM_E * EXTUDER_ADVANCE_K * cubic mm per second ^ 2
|
|
302
|
+//
|
|
303
|
+// hooke's law says: force = k * distance
|
|
304
|
+// bernoulli's priniciple says: v ^ 2 / 2 + g . h + pressure / density = constant
|
|
305
|
+// so: v ^ 2 is proportional to number of steps we advance the extruder
|
|
306
|
+//#define ADVANCE
|
|
307
|
+
|
|
308
|
+#ifdef ADVANCE
|
|
309
|
+#define EXTRUDER_ADVANCE_K .0
|
|
310
|
+
|
|
311
|
+#define D_FILAMENT 2.85
|
|
312
|
+#define STEPS_MM_E 836
|
|
313
|
+#define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
|
|
314
|
+#define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)
|
|
315
|
+
|
|
316
|
+#endif // ADVANCE
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+//LCD and SD support
|
|
320
|
+//#define ULTRA_LCD //general lcd support, also 16x2
|
|
321
|
+//#define SDSUPPORT // Enable SD Card Support in Hardware Console
|
|
322
|
+#define SD_FINISHED_STEPPERRELEASE true //if sd support and the file is finished: disable steppers?
|
|
323
|
+#define SD_FINISHED_RELEASECOMMAND "M84 X Y E" // no z because of layer shift.
|
|
324
|
+
|
|
325
|
+#define ULTIPANEL
|
|
326
|
+#ifdef ULTIPANEL
|
|
327
|
+#define NEWPANEL //enable this if you have a click-encoder panel
|
|
328
|
+#define SDSUPPORT
|
|
329
|
+#define ULTRA_LCD
|
|
330
|
+#define LCD_WIDTH 20
|
|
331
|
+#define LCD_HEIGHT 4
|
|
332
|
+#else //no panel but just lcd
|
|
333
|
+#ifdef ULTRA_LCD
|
|
334
|
+#define LCD_WIDTH 16
|
|
335
|
+#define LCD_HEIGHT 2
|
|
336
|
+#endif
|
|
337
|
+#endif
|
|
338
|
+
|
|
339
|
+// A debugging feature to compare calculated vs performed steps, to see if steps are lost by the software.
|
|
340
|
+//#define DEBUG_STEPS
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+// Arc interpretation settings:
|
|
344
|
+#define MM_PER_ARC_SEGMENT 1
|
|
345
|
+#define N_ARC_CORRECTION 25
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+//automatic temperature: The hot end target temperature is calculated by all the buffered lines of gcode.
|
|
349
|
+//The maximum buffered steps/sec of the extruder motor are called "se".
|
|
350
|
+//You enter the autotemp mode by a M109 S<mintemp> T<maxtemp> F<factor>
|
|
351
|
+// the target temperature is set to mintemp+factor*se[steps/sec] and limited by mintemp and maxtemp
|
|
352
|
+// you exit the value by any M109 without F*
|
|
353
|
+// Also, if the temperature is set to a value <mintemp, it is not changed by autotemp.
|
|
354
|
+// on an ultimaker, some initial testing worked with M109 S215 T260 F0.1 in the start.gcode
|
|
355
|
+//#define AUTOTEMP
|
|
356
|
+#ifdef AUTOTEMP
|
|
357
|
+#define AUTOTEMP_OLDWEIGHT 0.98
|
|
358
|
+#endif
|
|
359
|
+
|
|
360
|
+//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
|
|
361
|
+//can be software-disabled for whatever purposes by
|
|
362
|
+#define PREVENT_DANGEROUS_EXTRUDE
|
|
363
|
+#define EXTRUDE_MINTEMP 0
|
|
364
|
+#define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
|
|
365
|
+
|
|
366
|
+const int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+// M240 Triggers a camera by emulating a Canon RC-1 Remote
|
|
370
|
+// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
|
|
371
|
+// #define PHOTOGRAPH_PIN 23
|
|
372
|
+
|
|
373
|
+//===========================================================================
|
|
374
|
+//=============================Buffers ============================
|
|
375
|
+//===========================================================================
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+// The number of linear motions that can be in the plan at any give time.
|
|
380
|
+// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ringbuffering.
|
|
381
|
+#if defined SDSUPPORT
|
|
382
|
+#define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
|
|
383
|
+#else
|
|
384
|
+#define BLOCK_BUFFER_SIZE 16 // maximize block buffer
|
|
385
|
+#endif
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+//The ASCII buffer for recieving from the serial:
|
|
389
|
+#define MAX_CMD_SIZE 96
|
|
390
|
+#define BUFSIZE 4
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+#include "thermistortables.h"
|
|
394
|
+
|
|
395
|
+#endif //__CONFIGURATION_H
|
|
396
|
+
|
|
397
|
+
|