Bladeren bron

Add RAMPS 1.4.4 to AGCM4 (#16606)

Giuliano Zaro 4 jaren geleden
bovenliggende
commit
ff0c931e47
No account linked to committer's email address

+ 1
- 1
.github/workflows/test-builds.yml Bestand weergeven

@@ -32,6 +32,7 @@ jobs:
32 32
         - megaatmega2560
33 33
         - teensy31
34 34
         - teensy35
35
+        - SAMD51_grandcentral_m4
35 36
 
36 37
         # Extended AVR Environments
37 38
 
@@ -75,7 +76,6 @@ jobs:
75 76
         #- mks_robin_lite
76 77
         #- mks_robin_mini
77 78
         #- mks_robin_nano
78
-        #- SAMD51_grandcentral_m4
79 79
 
80 80
     steps:
81 81
 

+ 1
- 1
Marlin/src/HAL/HAL_SAMD51/timers.h Bestand weergeven

@@ -29,7 +29,7 @@
29 29
 typedef uint32_t hal_timer_t;
30 30
 #define HAL_TIMER_TYPE_MAX 0xFFFFFFFF
31 31
 
32
-#define HAL_TIMER_RATE      SystemCoreClock  // frequency of timers peripherals
32
+#define HAL_TIMER_RATE      F_CPU   // frequency of timers peripherals
33 33
 
34 34
 #define STEP_TIMER_NUM      0  // index of timer to use for stepper (also +1 for 32bits counter)
35 35
 #define PULSE_TIMER_NUM     STEP_TIMER_NUM

+ 5
- 1
Marlin/src/core/boards.h Bestand weergeven

@@ -295,7 +295,6 @@
295 295
 #define BOARD_GTM32_MINI_A30          4022  // STM32F103VET6 controller
296 296
 #define BOARD_GTM32_REV_B             4023  // STM32F103VET6 controller
297 297
 
298
-
299 298
 //
300 299
 // ARM Cortex-M4F
301 300
 //
@@ -341,6 +340,11 @@
341 340
 #define BOARD_E4D_BOX                 6003  // E4d@BOX
342 341
 
343 342
 //
343
+// SAMD51 ARM Cortex M4
344
+//
345
+#define BOARD_AGCM4_RAMPS_144         6100  // RAMPS 1.4.4
346
+
347
+//
344 348
 // Simulations
345 349
 //
346 350
 

+ 7
- 0
Marlin/src/pins/pins.h Bestand weergeven

@@ -579,6 +579,13 @@
579 579
   #include "esp32/pins_E4D.h"                   // ESP32                                  env:esp32
580 580
 
581 581
 //
582
+// Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4)
583
+//
584
+
585
+#elif MB(AGCM4_RAMPS_144)
586
+  #include "samd/pins_RAMPS_144.h"              // SAMD51                                 env:SAMD51_grandcentral_m4
587
+
588
+//
582 589
 // Linux Native Debug board
583 590
 //
584 591
 

+ 611
- 0
Marlin/src/pins/samd/pins_RAMPS_144.h Bestand weergeven

@@ -0,0 +1,611 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+/**
25
+ * AGCM4 with RAMPS v1.4.4 pin assignments
26
+ */
27
+
28
+#ifndef ARDUINO_GRAND_CENTRAL_M4
29
+  #error "Oops! Select 'Adafruit Grand Central M4' in 'Tools > Board.'"
30
+#endif
31
+
32
+#ifndef BOARD_INFO_NAME
33
+  #define BOARD_INFO_NAME "AGCM4 RAMPS 1.4.4"
34
+#endif
35
+
36
+//
37
+// Servos
38
+//
39
+#define SERVO0_PIN         11
40
+#define SERVO1_PIN          6
41
+#define SERVO2_PIN          5
42
+#define SERVO3_PIN          4
43
+
44
+//
45
+// EEPROM
46
+//
47
+#define E2END 0x7FFF  // 32Kb (24lc256)
48
+#define I2C_EEPROM    // EEPROM on I2C-0
49
+
50
+//
51
+// Limit Switches
52
+//
53
+#define X_MIN_PIN           3
54
+#define X_MAX_PIN           2
55
+#define Y_MIN_PIN          14
56
+#define Y_MAX_PIN          15
57
+#define Z_MIN_PIN          18
58
+#define Z_MAX_PIN          19
59
+
60
+//
61
+// Z Probe (when not Z_MIN_PIN)
62
+//
63
+#ifndef Z_MIN_PROBE_PIN
64
+  #define Z_MIN_PROBE_PIN  18
65
+#endif
66
+
67
+//
68
+// Steppers
69
+//
70
+#define X_STEP_PIN         67     // Mega/Due:54 - AGCM4:67
71
+#define X_DIR_PIN          68     // Mega/Due:55 - AGCM4:68
72
+#define X_ENABLE_PIN       38
73
+#ifndef X_CS_PIN
74
+  #define X_CS_PIN         47
75
+#endif
76
+
77
+#define Y_STEP_PIN         73     // Mega/Due:60 - AGCM4:73
78
+#define Y_DIR_PIN          74     // Mega/Due:61 - AGCM4:74
79
+#define Y_ENABLE_PIN       69     // Mega/Due:56 - AGCM4:69
80
+#ifndef Y_CS_PIN
81
+  #define Y_CS_PIN         45
82
+#endif
83
+
84
+#define Z_STEP_PIN         46
85
+#define Z_DIR_PIN          48
86
+#define Z_ENABLE_PIN       54     // Mega/Due:62 - AGCM4:54
87
+#ifndef Z_CS_PIN
88
+  #define Z_CS_PIN         32
89
+#endif
90
+
91
+#define Z2_STEP_PIN        36
92
+#define Z2_DIR_PIN         34
93
+#define Z2_ENABLE_PIN      30
94
+#ifndef Z2_CS_PIN
95
+  #define Z2_CS_PIN        22
96
+#endif
97
+
98
+#define E0_STEP_PIN        26
99
+#define E0_DIR_PIN         28
100
+#define E0_ENABLE_PIN      24
101
+#ifndef E0_CS_PIN
102
+  #define E0_CS_PIN        43
103
+#endif
104
+
105
+//
106
+// Temperature Sensors
107
+//
108
+#define TEMP_0_PIN         13
109
+#define TEMP_BED_PIN       14
110
+#define TEMP_CHAMBER_PIN   15
111
+
112
+//
113
+// Heaters / Fans
114
+//
115
+#define HEATER_0_PIN       10
116
+#define HEATER_BED_PIN      8
117
+#define FAN_PIN             9
118
+#define FAN1_PIN            7
119
+#define FAN2_PIN           12
120
+
121
+//
122
+// Misc. Functions
123
+//
124
+#define SDSS               53
125
+#define LED_PIN            13
126
+
127
+#ifndef FILWIDTH_PIN
128
+  #define FILWIDTH_PIN      5   // Analog Input on AUX2
129
+#endif
130
+
131
+// RAMPS 1.4 DIO 4 on the servos connector
132
+#ifndef FIL_RUNOUT_PIN
133
+  #define FIL_RUNOUT_PIN    4
134
+#endif
135
+
136
+#ifndef PS_ON_PIN
137
+  #define PS_ON_PIN        39
138
+#endif
139
+
140
+#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
141
+  #if NUM_SERVOS <= 1 // Prefer the servo connector
142
+    #define CASE_LIGHT_PIN  6   // Hardware PWM
143
+  #endif
144
+#endif
145
+
146
+//
147
+// M3/M4/M5 - Spindle/Laser Control
148
+//
149
+#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
150
+  #if !NUM_SERVOS                      // Use servo connector if possible
151
+    #define SPINDLE_LASER_ENA_PIN  4   // Pullup or pulldown!
152
+    #define SPINDLE_LASER_PWM_PIN  6   // Hardware PWM
153
+    #define SPINDLE_DIR_PIN        5
154
+  #else
155
+    #error "No auto-assignable Spindle/Laser pins available."
156
+  #endif
157
+#endif
158
+
159
+//
160
+// TMC software SPI
161
+//
162
+#if ENABLED(TMC_USE_SW_SPI)
163
+  #ifndef TMC_SW_MOSI
164
+    #define TMC_SW_MOSI    58     // Mega/Due:66 - AGCM4:58
165
+  #endif
166
+  #ifndef TMC_SW_MISO
167
+    #define TMC_SW_MISO    44
168
+  #endif
169
+  #ifndef TMC_SW_SCK
170
+    #define TMC_SW_SCK     56     // Mega/Due:64 - AGCM4:56
171
+  #endif
172
+#endif
173
+
174
+#if HAS_TMC220x
175
+  /**
176
+   * TMC2208/TMC2209 stepper drivers
177
+   *
178
+   * Hardware serial communication ports.
179
+   * If undefined software serial is used according to the pins below
180
+   */
181
+  //#define X_HARDWARE_SERIAL  Serial1
182
+  //#define X2_HARDWARE_SERIAL Serial1
183
+  //#define Y_HARDWARE_SERIAL  Serial1
184
+  //#define Y2_HARDWARE_SERIAL Serial1
185
+  //#define Z_HARDWARE_SERIAL  Serial1
186
+  //#define Z2_HARDWARE_SERIAL Serial1
187
+  //#define E0_HARDWARE_SERIAL Serial1
188
+  //#define E1_HARDWARE_SERIAL Serial1
189
+  //#define E2_HARDWARE_SERIAL Serial1
190
+  //#define E3_HARDWARE_SERIAL Serial1
191
+  //#define E4_HARDWARE_SERIAL Serial1
192
+
193
+  //
194
+  // Software serial
195
+  //
196
+
197
+  #ifndef X_SERIAL_TX_PIN
198
+    #define X_SERIAL_TX_PIN  47
199
+  #endif
200
+  #ifndef X_SERIAL_RX_PIN
201
+    #define X_SERIAL_RX_PIN  47
202
+  #endif
203
+  #ifndef X2_SERIAL_TX_PIN
204
+    #define X2_SERIAL_TX_PIN -1
205
+  #endif
206
+  #ifndef X2_SERIAL_RX_PIN
207
+    #define X2_SERIAL_RX_PIN -1
208
+  #endif
209
+
210
+  #ifndef Y_SERIAL_TX_PIN
211
+    #define Y_SERIAL_TX_PIN  45
212
+  #endif
213
+  #ifndef Y_SERIAL_RX_PIN
214
+    #define Y_SERIAL_RX_PIN  45
215
+  #endif
216
+  #ifndef Y2_SERIAL_TX_PIN
217
+    #define Y2_SERIAL_TX_PIN -1
218
+  #endif
219
+  #ifndef Y2_SERIAL_RX_PIN
220
+    #define Y2_SERIAL_RX_PIN -1
221
+  #endif
222
+
223
+  #ifndef Z_SERIAL_TX_PIN
224
+    #define Z_SERIAL_TX_PIN  32
225
+  #endif
226
+  #ifndef Z_SERIAL_RX_PIN
227
+    #define Z_SERIAL_RX_PIN  32
228
+  #endif
229
+  #ifndef Z2_SERIAL_TX_PIN
230
+    #define Z2_SERIAL_TX_PIN 22
231
+  #endif
232
+  #ifndef Z2_SERIAL_RX_PIN
233
+    #define Z2_SERIAL_RX_PIN 22
234
+  #endif
235
+
236
+  #ifndef E0_SERIAL_TX_PIN
237
+    #define E0_SERIAL_TX_PIN 43
238
+  #endif
239
+  #ifndef E0_SERIAL_RX_PIN
240
+    #define E0_SERIAL_RX_PIN 43
241
+  #endif
242
+  #ifndef E1_SERIAL_TX_PIN
243
+    #define E1_SERIAL_TX_PIN -1
244
+  #endif
245
+  #ifndef E1_SERIAL_RX_PIN
246
+    #define E1_SERIAL_RX_PIN -1
247
+  #endif
248
+  #ifndef E2_SERIAL_TX_PIN
249
+    #define E2_SERIAL_TX_PIN -1
250
+  #endif
251
+  #ifndef E2_SERIAL_RX_PIN
252
+    #define E2_SERIAL_RX_PIN -1
253
+  #endif
254
+  #ifndef E3_SERIAL_TX_PIN
255
+    #define E3_SERIAL_TX_PIN -1
256
+  #endif
257
+  #ifndef E3_SERIAL_RX_PIN
258
+    #define E3_SERIAL_RX_PIN -1
259
+  #endif
260
+  #ifndef E4_SERIAL_TX_PIN
261
+    #define E4_SERIAL_TX_PIN -1
262
+  #endif
263
+  #ifndef E4_SERIAL_RX_PIN
264
+    #define E4_SERIAL_RX_PIN -1
265
+  #endif
266
+  #ifndef E5_SERIAL_TX_PIN
267
+    #define E5_SERIAL_TX_PIN -1
268
+  #endif
269
+  #ifndef E5_SERIAL_RX_PIN
270
+    #define E5_SERIAL_RX_PIN -1
271
+  #endif
272
+  #ifndef E6_SERIAL_TX_PIN
273
+    #define E6_SERIAL_TX_PIN -1
274
+  #endif
275
+  #ifndef E6_SERIAL_RX_PIN
276
+    #define E6_SERIAL_RX_PIN -1
277
+  #endif
278
+  #ifndef E7_SERIAL_TX_PIN
279
+    #define E7_SERIAL_TX_PIN -1
280
+  #endif
281
+  #ifndef E7_SERIAL_RX_PIN
282
+    #define E7_SERIAL_RX_PIN -1
283
+  #endif
284
+#endif
285
+
286
+//////////////////////////
287
+// LCDs and Controllers //
288
+//////////////////////////
289
+
290
+#if HAS_SPI_LCD
291
+
292
+  //
293
+  // LCD Display output pins
294
+  //
295
+  #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
296
+
297
+    // TO TEST
298
+    // #define LCD_PINS_RS         49   // CS chip select /SS chip slave select
299
+    // #define LCD_PINS_ENABLE     51   // SID (MOSI)
300
+    // #define LCD_PINS_D4         52   // SCK (CLK) clock
301
+
302
+  #elif BOTH(NEWPANEL, PANEL_ONE)
303
+
304
+    // TO TEST
305
+    // #define LCD_PINS_RS         40
306
+    // #define LCD_PINS_ENABLE     42
307
+    // #define LCD_PINS_D4         57     // Mega/Due:65 - AGCM4:57
308
+    // #define LCD_PINS_D5         58     // Mega/Due:66 - AGCM4:58
309
+    // #define LCD_PINS_D6         44
310
+    // #define LCD_PINS_D7         56     // Mega/Due:64 - AGCM4:56
311
+
312
+  #else
313
+
314
+    #if ENABLED(CR10_STOCKDISPLAY)
315
+
316
+      // TO TEST
317
+      // #define LCD_PINS_RS       27
318
+      // #define LCD_PINS_ENABLE   29
319
+      // #define LCD_PINS_D4       25
320
+
321
+      #if DISABLED(NEWPANEL)
322
+        // TO TEST
323
+        // #define BEEPER_PIN      37
324
+      #endif
325
+
326
+    #elif ENABLED(ZONESTAR_LCD)
327
+
328
+      // TO TEST
329
+      // #define LCD_PINS_RS       56     // Mega/Due:64 - AGCM4:56
330
+      // #define LCD_PINS_ENABLE   44
331
+      // #define LCD_PINS_D4       55     // Mega/Due:63 - AGCM4:55
332
+      // #define LCD_PINS_D5       40
333
+      // #define LCD_PINS_D6       42
334
+      // #define LCD_PINS_D7       57     // Mega/Due:65 - AGCM4:57
335
+
336
+    #else
337
+
338
+      #if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
339
+        // TO TEST
340
+        // #define LCD_PINS_DC     25   // Set as output on init
341
+        // #define LCD_PINS_RS     27   // Pull low for 1s to init
342
+        // DOGM SPI LCD Support
343
+        // #define DOGLCD_CS       16
344
+        // #define DOGLCD_MOSI     17
345
+        // #define DOGLCD_SCK      23
346
+        // #define DOGLCD_A0       LCD_PINS_DC
347
+      #else
348
+        #define LCD_PINS_RS        16
349
+        #define LCD_PINS_ENABLE    17
350
+        #define LCD_PINS_D4        23
351
+        #define LCD_PINS_D5        25
352
+        #define LCD_PINS_D6        27
353
+      #endif
354
+
355
+      #define LCD_PINS_D7          29
356
+
357
+      #if DISABLED(NEWPANEL)
358
+        #define BEEPER_PIN         33
359
+      #endif
360
+
361
+    #endif
362
+
363
+    #if DISABLED(NEWPANEL)
364
+      // Buttons attached to a shift register
365
+      // Not wired yet
366
+      //#define SHIFT_CLK          38
367
+      //#define SHIFT_LD           42
368
+      //#define SHIFT_OUT          40
369
+      //#define SHIFT_EN           17
370
+    #endif
371
+
372
+  #endif
373
+
374
+  //
375
+  // LCD Display input pins
376
+  //
377
+  #if ENABLED(NEWPANEL)
378
+
379
+    #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
380
+
381
+      #define BEEPER_PIN           37
382
+
383
+      #if ENABLED(CR10_STOCKDISPLAY)
384
+        // TO TEST
385
+        // #define BTN_EN1         17
386
+        // #define BTN_EN2         23
387
+      #else
388
+        #define BTN_EN1            31
389
+        #define BTN_EN2            33
390
+      #endif
391
+
392
+      #define BTN_ENC              35
393
+      #ifndef SD_DETECT_PIN
394
+        #define SD_DETECT_PIN      49
395
+      #endif
396
+      #define KILL_PIN             41
397
+
398
+      #if ENABLED(BQ_LCD_SMART_CONTROLLER)
399
+        // TO TEST
400
+        // #define LCD_BACKLIGHT_PIN 39
401
+      #endif
402
+
403
+    #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
404
+
405
+      // TO TEST
406
+      // #define BTN_EN1           56     // Mega/Due:64 - AGCM4:56
407
+      // #define BTN_EN2           72     // Mega/Due:59 - AGCM4:72
408
+      // #define BTN_ENC           55
409
+      // #define SD_DETECT_PIN     42
410
+
411
+    #elif ENABLED(LCD_I2C_PANELOLU2)
412
+
413
+      // TO TEST
414
+      // #define BTN_EN1           47
415
+      // #define BTN_EN2           43
416
+      // #define BTN_ENC           32
417
+      // #define LCD_SDSS          SDSS
418
+      // #define KILL_PIN          41
419
+
420
+    #elif ENABLED(LCD_I2C_VIKI)
421
+
422
+      // TO TEST
423
+      // #define BTN_EN1           40   // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
424
+      // #define BTN_EN2           42
425
+      // #define BTN_ENC           -1
426
+
427
+      // #define LCD_SDSS SDSS
428
+      // #define SD_DETECT_PIN     49
429
+
430
+    #elif ANY(VIKI2, miniVIKI)
431
+
432
+      // TO TEST
433
+      // #define DOGLCD_CS         45
434
+      // #define DOGLCD_A0         44
435
+      // #define LCD_SCREEN_ROT_180
436
+
437
+      // #define BEEPER_PIN        33
438
+      // #define STAT_LED_RED_PIN  32
439
+      // #define STAT_LED_BLUE_PIN 35
440
+
441
+      // #define BTN_EN1           22
442
+      // #define BTN_EN2            7
443
+      // #define BTN_ENC           39
444
+
445
+      // #define SD_DETECT_PIN     -1   // Pin 49 for display SD interface, 72 for easy adapter board
446
+      // #define KILL_PIN          31
447
+
448
+    #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
449
+
450
+      // TO TEST
451
+      // #define DOGLCD_CS         29
452
+      // #define DOGLCD_A0         27
453
+
454
+      // #define BEEPER_PIN        23
455
+      // #define LCD_BACKLIGHT_PIN 33
456
+
457
+      // #define BTN_EN1           35
458
+      // #define BTN_EN2           37
459
+      // #define BTN_ENC           31
460
+
461
+      // #define LCD_SDSS          SDSS
462
+      // #define SD_DETECT_PIN     49
463
+      // #define KILL_PIN          41
464
+
465
+    #elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
466
+
467
+      // TO TEST
468
+      //#define BEEPER_PIN         37
469
+      //#define BTN_ENC            35
470
+      //#define SD_DETECT_PIN      49
471
+
472
+      //#ifndef KILL_PIN
473
+      //  #define KILL_PIN         41
474
+      //#endif
475
+
476
+      #if ENABLED(MKS_MINI_12864)   // Added in Marlin 1.1.6
477
+
478
+        // TO TEST
479
+        // #define DOGLCD_A0       27
480
+        // #define DOGLCD_CS       25
481
+
482
+        // GLCD features
483
+        // Uncomment screen orientation
484
+        // #define LCD_SCREEN_ROT_90
485
+        // #define LCD_SCREEN_ROT_180
486
+        // #define LCD_SCREEN_ROT_270
487
+
488
+        // not connected to a pin
489
+        // #define LCD_BACKLIGHT_PIN 57    // backlight LED on A11/D? (Mega/Due:65 - AGCM4:57)
490
+
491
+        // #define BTN_EN1         31
492
+        // #define BTN_EN2         33
493
+
494
+      #elif ENABLED(FYSETC_MINI_12864)
495
+
496
+        // From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
497
+
498
+        // TO TEST
499
+        // #define DOGLCD_A0       16
500
+        // #define DOGLCD_CS       17
501
+
502
+        // #define BTN_EN1         33
503
+        // #define BTN_EN2         31
504
+
505
+        //#define FORCE_SOFT_SPI    // Use this if default of hardware SPI causes display problems
506
+                                    //   results in LCD soft SPI mode 3, SD soft SPI mode 0
507
+
508
+        // #define LCD_RESET_PIN   23   // Must be high or open for LCD to operate normally.
509
+
510
+        #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
511
+          #ifndef RGB_LED_R_PIN
512
+            // TO TEST
513
+            // #define RGB_LED_R_PIN 25
514
+          #endif
515
+          #ifndef RGB_LED_G_PIN
516
+            // TO TEST
517
+            // #define RGB_LED_G_PIN 27
518
+          #endif
519
+          #ifndef RGB_LED_B_PIN
520
+            // TO TEST
521
+            // #define RGB_LED_B_PIN 29
522
+          #endif
523
+        #elif ENABLED(FYSETC_MINI_12864_2_1)
524
+          // TO TEST
525
+          // #define NEOPIXEL_PIN    25
526
+        #endif
527
+
528
+      #endif
529
+
530
+    #elif ENABLED(MINIPANEL)
531
+
532
+      // TO TEST
533
+      // #define BEEPER_PIN        42
534
+      // not connected to a pin
535
+      // #define LCD_BACKLIGHT_PIN 57    // backlight LED on A11/D? (Mega/Due:65 - AGCM4:57)
536
+
537
+      // #define DOGLCD_A0         44
538
+      // #define DOGLCD_CS         58    // Mega/Due:66 - AGCM4:58
539
+
540
+      // GLCD features
541
+      // Uncomment screen orientation
542
+      // #define LCD_SCREEN_ROT_90
543
+      // #define LCD_SCREEN_ROT_180
544
+      // #define LCD_SCREEN_ROT_270
545
+
546
+      // #define BTN_EN1           40
547
+      // #define BTN_EN2           55    // Mega/Due:63 - AGCM4:55
548
+      // #define BTN_ENC           72    // Mega/Due:59 - AGCM4:72
549
+
550
+      // #define SD_DETECT_PIN     49
551
+      // #define KILL_PIN          56    // Mega/Due:64 - AGCM4:56
552
+
553
+    #elif ENABLED(ZONESTAR_LCD)
554
+
555
+      // TO TEST
556
+      // #define ADC_KEYPAD_PIN    12
557
+
558
+    #elif ENABLED(AZSMZ_12864)
559
+
560
+      // TO TEST
561
+
562
+    #else
563
+
564
+      // Beeper on AUX-4
565
+      // #define BEEPER_PIN        33
566
+
567
+      // Buttons are directly attached to AUX-2
568
+      #if ENABLED(REPRAPWORLD_KEYPAD)
569
+        // TO TEST
570
+        // #define SHIFT_OUT       40
571
+        // #define SHIFT_CLK       44
572
+        // #define SHIFT_LD        42
573
+        // #define BTN_EN1         56    // Mega/Due:64 - AGCM4:56
574
+        // #define BTN_EN2         72    // Mega/Due:59 - AGCM4:72
575
+        // #define BTN_ENC         55    // Mega/Due:63 - AGCM4:55
576
+      #elif ENABLED(PANEL_ONE)
577
+        // TO TEST
578
+        // #define BTN_EN1         72    // AUX2 PIN 3 (Mega/Due:59 - AGCM4:72)
579
+        // #define BTN_EN2         55    // AUX2 PIN 4 (Mega/Due:63 - AGCM4:55)
580
+        // #define BTN_ENC         49    // AUX3 PIN 7
581
+      #else
582
+        // TO TEST
583
+        // #define BTN_EN1         37
584
+        // #define BTN_EN2         35
585
+        // #define BTN_ENC         31
586
+      #endif
587
+
588
+      #if ENABLED(G3D_PANEL)
589
+        // TO TEST
590
+        // #define SD_DETECT_PIN   49
591
+        // #define KILL_PIN        41
592
+      #endif
593
+
594
+    #endif
595
+  #endif // NEWPANEL
596
+
597
+#endif // HAS_SPI_LCD
598
+
599
+//
600
+// SD Support
601
+//
602
+#ifndef SDCARD_CONNECTION
603
+  #define SDCARD_CONNECTION ONBOARD
604
+#endif
605
+
606
+#if SD_CONNECTION_IS(ONBOARD)
607
+  #undef SDSS
608
+  #define SDSS             83
609
+  #undef SD_DETECT_PIN
610
+  #define SD_DETECT_PIN    95
611
+#endif

+ 7
- 0
buildroot/share/tests/SAMD51_grandcentral_m4-tests Bestand weergeven

@@ -6,5 +6,12 @@
6 6
 # exit on first failure
7 7
 set -e
8 8
 
9
+#
10
+# Build with the default configurations
11
+#
12
+restore_configs
13
+opt_set MOTHERBOARD BOARD_AGCM4_RAMPS_144
14
+exec_test $1 $2 "Build Grand Central M4 Default Configuration"
15
+
9 16
 # clean up
10 17
 restore_configs

Laden…
Annuleren
Opslaan