Scott Lahteine il y a 7 ans
Parent
révision
82fff87e16

+ 15
- 11
Marlin/src/pins/pins.h Voir le fichier

@@ -35,11 +35,19 @@
35 35
 #ifndef __PINS_H__
36 36
 #define __PINS_H__
37 37
 
38
-#define IS_RAMPS_EFB (MB(RAMPS_13_EFB) || MB(RAMPS_14_EFB) || MB(RAMPS_14_RE_ARM_EFB) || MB(RAMPS_SMART_EFB) || MB(RAMPS_DUO_EFB) || MB(RAMPS4DUE_EFB))
39
-#define IS_RAMPS_EEB (MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB) || MB(RAMPS_14_RE_ARM_EEB) || MB(RAMPS_SMART_EEB) || MB(RAMPS_DUO_EEB) || MB(RAMPS4DUE_EEB))
40
-#define IS_RAMPS_EFF (MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF) || MB(RAMPS_14_RE_ARM_EFF) || MB(RAMPS_SMART_EFF) || MB(RAMPS_DUO_EFF) || MB(RAMPS4DUE_EFF))
41
-#define IS_RAMPS_EEF (MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_RE_ARM_EEF) || MB(RAMPS_SMART_EEF) || MB(RAMPS_DUO_EEF) || MB(RAMPS4DUE_EEF))
42
-#define IS_RAMPS_SF  (MB(RAMPS_13_SF)  || MB(RAMPS_14_SF)  || MB(RAMPS_14_RE_ARM_SF)  || MB(RAMPS_SMART_SF)  || MB(RAMPS_DUO_SF)  || MB(RAMPS4DUE_SF) )
38
+#include "../inc/MarlinConfig.h"
39
+
40
+#if MB(RAMPS_13_EFB) || MB(RAMPS_14_EFB) || MB(RAMPS_14_RE_ARM_EFB) || MB(RAMPS_SMART_EFB) || MB(RAMPS_DUO_EFB) || MB(RAMPS4DUE_EFB)
41
+  #define IS_RAMPS_EFB
42
+#elif MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB) || MB(RAMPS_14_RE_ARM_EEB) || MB(RAMPS_SMART_EEB) || MB(RAMPS_DUO_EEB) || MB(RAMPS4DUE_EEB)
43
+  #define IS_RAMPS_EEB
44
+#elif MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF) || MB(RAMPS_14_RE_ARM_EFF) || MB(RAMPS_SMART_EFF) || MB(RAMPS_DUO_EFF) || MB(RAMPS4DUE_EFF)
45
+  #define IS_RAMPS_EFF
46
+#elif MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_RE_ARM_EEF) || MB(RAMPS_SMART_EEF) || MB(RAMPS_DUO_EEF) || MB(RAMPS4DUE_EEF)
47
+  #define IS_RAMPS_EEF
48
+#elif MB(RAMPS_13_SF)  || MB(RAMPS_14_SF)  || MB(RAMPS_14_RE_ARM_SF)  || MB(RAMPS_SMART_SF)  || MB(RAMPS_DUO_SF)  || MB(RAMPS4DUE_SF) 
49
+  #define IS_RAMPS_SF
50
+#endif
43 51
 
44 52
 //
45 53
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
@@ -254,7 +262,7 @@
254 262
   #include "pins_DUE3DOM_MINI.h"
255 263
 #elif MB(RADDS)
256 264
   #include "pins_RADDS.h"
257
-#elif MB(RAMPS_FD_V1)
265
+#elif MB(RAMPS_FD)
258 266
   #include "pins_RAMPS_FD.h"
259 267
 #elif MB(RAMPS_FD_V2)
260 268
   #include "pins_RAMPS_FD_V2.h"
@@ -290,9 +298,6 @@
290 298
   #include "pins_RAMPS4DUE.h"
291 299
 #elif MB(ALLIGATOR)
292 300
   #include "pins_ALLIGATOR_R2.h"
293
-#elif MB(RAMPS_FD_V1) || MB(RAMPS_FD_V2)
294
-  #include "pins_RAMPS_FD_v1.h"
295
-
296 301
 #else
297 302
   #error "Unknown MOTHERBOARD value set in Configuration.h"
298 303
 #endif
@@ -670,7 +675,6 @@
670 675
 
671 676
 // Note: default SPI pins are defined in the HAL
672 677
 
673
-#include "src/HAL/HAL_spi_pins.h"
674
-
678
+#include "../HAL/HAL_spi_pins.h"
675 679
 
676 680
 #endif // __PINS_H__

+ 1
- 1
Marlin/src/pins/pinsDebug.h Voir le fichier

@@ -102,7 +102,7 @@ const PinInfo pin_array[] PROGMEM = {
102 102
 };
103 103
 
104 104
 
105
-#include "src/HAL/HAL_pinsDebug.h"  // get the correct support file for this CPU
105
+#include "../HAL/HAL_pinsDebug.h"  // get the correct support file for this CPU
106 106
 
107 107
 
108 108
 static void print_input_or_output(const bool isout) {

+ 1
- 1
Marlin/src/pins/pins_RAMPS.h Voir le fichier

@@ -63,7 +63,7 @@
63 63
 //
64 64
 // Servos
65 65
 //
66
-#ifdef IS_RAMPS_13
66
+#if ENABLED(IS_RAMPS_13)
67 67
   #define SERVO0_PIN        7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
68 68
 #else
69 69
   #define SERVO0_PIN       11

+ 9
- 3
Marlin/src/pins/pins_RUMBA.h Voir le fichier

@@ -153,6 +153,12 @@
153 153
 //
154 154
 // M3/M4/M5 - Spindle/Laser Control
155 155
 //
156
-#define SPINDLE_LASER_PWM_PIN     4  // MUST BE HARDWARE PWM
157
-#define SPINDLE_LASER_ENABLE_PIN 14  // Pin should have a pullup!
158
-#define SPINDLE_DIR_PIN          15
156
+#ifndef SPINDLE_LASER_PWM_PIN
157
+  #define SPINDLE_LASER_PWM_PIN     4  // MUST BE HARDWARE PWM. Pin 4 interrupts OC0* and OC1* always in use?
158
+#endif
159
+#ifndef SPINDLE_LASER_ENABLE_PIN
160
+  #define SPINDLE_LASER_ENABLE_PIN 14  // Pin should have a pullup!
161
+#endif
162
+#ifndef SPINDLE_DIR_PIN
163
+  #define SPINDLE_DIR_PIN          15
164
+#endif

+ 9
- 9
Marlin/src/pins/pins_TEENSY35_36.h Voir le fichier

@@ -62,17 +62,17 @@ D8    HEATER_BED_PIN      CS1     RX4  A12 31 |   46 * * 47   | 34 A15 PWM
62 62
 
63 63
 */
64 64
 
65
-#define X_STEP_PIN          22
66
-#define X_DIR_PIN           21
67
-#define X_ENABLE_PIN        39
65
+#define X_STEP_PIN         22
66
+#define X_DIR_PIN          21
67
+#define X_ENABLE_PIN       39
68 68
 
69
-#define Y_STEP_PIN          19
70
-#define Y_DIR_PIN           18
71
-#define Y_ENABLE_PIN        20
69
+#define Y_STEP_PIN         19
70
+#define Y_DIR_PIN          18
71
+#define Y_ENABLE_PIN       20
72 72
 
73
-#define Z_STEP_PIN          38
74
-#define Z_DIR_PIN           37
75
-#define Z_ENABLE_PIN        17
73
+#define Z_STEP_PIN         38
74
+#define Z_DIR_PIN          37
75
+#define Z_ENABLE_PIN       17
76 76
 
77 77
 #define E0_STEP_PIN        31
78 78
 #define E0_DIR_PIN         30

Chargement…
Annuler
Enregistrer