소스 검색

Pins updates

Scott Lahteine 7 년 전
부모
커밋
82fff87e16
5개의 변경된 파일35개의 추가작업 그리고 25개의 파일을 삭제
  1. 15
    11
      Marlin/src/pins/pins.h
  2. 1
    1
      Marlin/src/pins/pinsDebug.h
  3. 1
    1
      Marlin/src/pins/pins_RAMPS.h
  4. 9
    3
      Marlin/src/pins/pins_RUMBA.h
  5. 9
    9
      Marlin/src/pins/pins_TEENSY35_36.h

+ 15
- 11
Marlin/src/pins/pins.h 파일 보기

35
 #ifndef __PINS_H__
35
 #ifndef __PINS_H__
36
 #define __PINS_H__
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
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
53
 // RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
254
   #include "pins_DUE3DOM_MINI.h"
262
   #include "pins_DUE3DOM_MINI.h"
255
 #elif MB(RADDS)
263
 #elif MB(RADDS)
256
   #include "pins_RADDS.h"
264
   #include "pins_RADDS.h"
257
-#elif MB(RAMPS_FD_V1)
265
+#elif MB(RAMPS_FD)
258
   #include "pins_RAMPS_FD.h"
266
   #include "pins_RAMPS_FD.h"
259
 #elif MB(RAMPS_FD_V2)
267
 #elif MB(RAMPS_FD_V2)
260
   #include "pins_RAMPS_FD_V2.h"
268
   #include "pins_RAMPS_FD_V2.h"
290
   #include "pins_RAMPS4DUE.h"
298
   #include "pins_RAMPS4DUE.h"
291
 #elif MB(ALLIGATOR)
299
 #elif MB(ALLIGATOR)
292
   #include "pins_ALLIGATOR_R2.h"
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
 #else
301
 #else
297
   #error "Unknown MOTHERBOARD value set in Configuration.h"
302
   #error "Unknown MOTHERBOARD value set in Configuration.h"
298
 #endif
303
 #endif
670
 
675
 
671
 // Note: default SPI pins are defined in the HAL
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
 #endif // __PINS_H__
680
 #endif // __PINS_H__

+ 1
- 1
Marlin/src/pins/pinsDebug.h 파일 보기

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
 static void print_input_or_output(const bool isout) {
108
 static void print_input_or_output(const bool isout) {

+ 1
- 1
Marlin/src/pins/pins_RAMPS.h 파일 보기

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

+ 9
- 3
Marlin/src/pins/pins_RUMBA.h 파일 보기

153
 //
153
 //
154
 // M3/M4/M5 - Spindle/Laser Control
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 파일 보기

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
 #define E0_STEP_PIN        31
77
 #define E0_STEP_PIN        31
78
 #define E0_DIR_PIN         30
78
 #define E0_DIR_PIN         30

Loading…
취소
저장