Support for SilverGate Board

master
Scott Lahteine 7 years ago
parent b48a77c88a
commit 4fb3ce4739

@ -154,7 +154,7 @@
#endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI)
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI) || ENABLED(SILVER_GATE_GLCD_CONTROLLER)
#define DOGLCD
#define U8GLIB_ST7920
#define REPRAP_DISCOUNT_SMART_CONTROLLER

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -33,6 +33,7 @@
#define BOARD_CNCONTROLS_12 112 // Cartesio CN Controls V12
#define BOARD_CHEAPTRONIC 2 // Cheaptronic v1.0
#define BOARD_CHEAPTRONIC_V2 21 // Cheaptronic v2.0
#define BOARD_SILVER_GATE 25 // Silvergate v1.0
#define BOARD_SETHI 20 // Sethi 3D_1
#define BOARD_MIGHTYBOARD_REVE 200 // Makerbot Mightyboard Revision E
#define BOARD_RAMPS_OLD 3 // MEGA/RAMPS up to 1.2

@ -1573,6 +1573,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1712,6 +1712,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1561,6 +1561,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1544,6 +1544,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1554,6 +1554,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1544,6 +1544,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1552,6 +1552,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1563,6 +1563,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1535,6 +1535,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1535,6 +1535,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1558,6 +1558,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1568,6 +1568,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1557,6 +1557,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1581,6 +1581,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1557,6 +1557,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1557,6 +1557,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1565,6 +1565,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1584,6 +1584,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1609,6 +1609,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1553,6 +1553,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1687,6 +1687,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1680,6 +1680,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1675,6 +1675,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1678,6 +1678,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1678,6 +1678,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1687,6 +1687,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1567,6 +1567,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1556,6 +1556,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1548,6 +1548,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -1558,6 +1558,11 @@
//
//#define MKS_12864OLED
// Silvergate GLCD controller
// http://github.com/android444/Silvergate
//
//#define SILVER_GATE_GLCD_CONTROLLER
//=============================================================================
//=============================== Extra Features ==============================
//=============================================================================

@ -158,6 +158,8 @@
#include "pins_GT2560_REV_A.h" // ATmega1280, ATmega2560
#elif MB(GT2560_REV_A_PLUS)
#include "pins_GT2560_REV_A_PLUS.h" // ATmega1280, ATmega2560
#elif MB(SILVER_GATE)
#include "pins_SILVER_GATE.h" // ATmega2561
//
// ATmega1281, ATmega2561

@ -102,10 +102,7 @@ const PinInfo pin_array[] PROGMEM = {
};
#define AVR_ATmega2560_FAMILY_PLUS_70 (MOTHERBOARD == BOARD_BQ_ZUM_MEGA_3D \
|| MOTHERBOARD == BOARD_MIGHTYBOARD_REVE \
|| MOTHERBOARD == BOARD_MINIRAMBO \
|| MOTHERBOARD == BOARD_SCOOVO_X9H)
#define AVR_ATmega2560_FAMILY_PLUS_70 (MB(BQ_ZUM_MEGA_3D) || MB(MIGHTYBOARD_REVE) || MB(MINIRAMBO) || MB(SCOOVO_X9H))
#if AVR_AT90USB1286_FAMILY
// Working with Teensyduino extension so need to re-define some things

@ -29,13 +29,13 @@
#define __PINSDEBUG_PLUS_70_H__
#undef NUM_DIGITAL_PINS
#if MOTHERBOARD == BOARD_BQ_ZUM_MEGA_3D
#if MB(BQ_ZUM_MEGA_3D)
#define NUM_DIGITAL_PINS 85
#elif MOTHERBOARD == BOARD_MIGHTYBOARD_REVE
#elif MB(MIGHTYBOARD_REVE)
#define NUM_DIGITAL_PINS 80
#elif MOTHERBOARD == BOARD_MINIRAMBO
#elif MB(MINIRAMBO)
#define NUM_DIGITAL_PINS 85
#elif MOTHERBOARD == BOARD_SCOOVO_X9H
#elif MB(SCOOVO_X9H)
#define NUM_DIGITAL_PINS 85
#endif

@ -0,0 +1,94 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#if !defined(__AVR_ATmega1281__) && !defined(__AVR_ATmega2561__)
#error Oops! Make sure you have 'Silvergate' selected from the 'Tools -> Boards' menu.
#endif
#ifndef BOARD_NAME
#define BOARD_NAME "Silver Gate"
#endif
#define LARGE_FLASH true
#define X_STEP_PIN 43
#define X_DIR_PIN 44
#define X_ENABLE_PIN 42
#define X_MIN_PIN 31
#define X_MAX_PIN 34
#define Y_STEP_PIN 40
#define Y_DIR_PIN 41
#define Y_ENABLE_PIN 39
#define Y_MIN_PIN 32
#define Y_MAX_PIN 35
#define Z_STEP_PIN 13
#define Z_DIR_PIN 38
#define Z_ENABLE_PIN 14
#define Z_MIN_PIN 33
#define Z_MAX_PIN 36
#define E0_STEP_PIN 27
#define E0_DIR_PIN 37
#define E0_ENABLE_PIN 45
#define SDSS 16
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
#endif
#define FAN_PIN 5
#define HEATER_0_PIN 7
#define E0_AUTO_FAN_PIN 3
#define CONTROLLER_FAN_PIN 2
#define TEMP_0_PIN 7 // Analog Input
#define HEATER_BED_PIN 8
#define TEMP_BED_PIN 6
#if ENABLED(DOGLCD)
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
#define LCD_PINS_RS 30
#define LCD_PINS_ENABLE 20
#define LCD_PINS_D4 25
#define BEEPER_PIN 29
#define BTN_EN1 19
#define BTN_EN2 22
#define BTN_ENC 24
#define LCD_BACKLIGHT_PIN 6
#if ENABLED(SILVER_GATE_GLCD_CONTROLLER)
#define KILL_PIN 21
#define HOME_PIN 28
#endif
#endif
#endif
#define SD_DETECT_PIN 15
#define STAT_LED_RED_PIN 23
#define STAT_LED_BLUE_PIN 26
#define CASE_LIGHT_PIN 51

@ -52,15 +52,15 @@
#define CPU_ST7565_DELAY_1 DELAY_0_NOP
#define CPU_ST7565_DELAY_2 DELAY_0_NOP
#define CPU_ST7565_DELAY_3 DELAY_1_NOP
#elif (MOTHERBOARD == BOARD_3DRAG) || (MOTHERBOARD == BOARD_K8200) || (MOTHERBOARD == BOARD_K8400)
#elif MB(3DRAG) || MB(K8200) || MB(K8400)
#define CPU_ST7565_DELAY_1 DELAY_0_NOP
#define CPU_ST7565_DELAY_2 DELAY_3_NOP
#define CPU_ST7565_DELAY_3 DELAY_0_NOP
#elif (MOTHERBOARD == BOARD_MINIRAMBO)
#elif MB(MINIRAMBO)
#define CPU_ST7565_DELAY_1 DELAY_0_NOP
#define CPU_ST7565_DELAY_2 DELAY_4_NOP
#define CPU_ST7565_DELAY_3 DELAY_0_NOP
#elif (MOTHERBOARD == BOARD_RAMBO)
#elif MB(RAMBO)
#define CPU_ST7565_DELAY_1 DELAY_0_NOP
#define CPU_ST7565_DELAY_2 DELAY_0_NOP
#define CPU_ST7565_DELAY_3 DELAY_0_NOP

@ -48,15 +48,15 @@
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_0_NOP
#define CPU_ST7920_DELAY_3 DELAY_1_NOP
#elif (MOTHERBOARD == BOARD_3DRAG) || (MOTHERBOARD == BOARD_K8200) || (MOTHERBOARD == BOARD_K8400)
#elif MB(3DRAG) || MB(K8200) || MB(K8400) || MB(SILVER_GATE)
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_3_NOP
#define CPU_ST7920_DELAY_3 DELAY_0_NOP
#elif (MOTHERBOARD == BOARD_MINIRAMBO)
#elif MB(MINIRAMBO)
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_4_NOP
#define CPU_ST7920_DELAY_3 DELAY_0_NOP
#elif (MOTHERBOARD == BOARD_RAMBO)
#elif MB(RAMBO)
#define CPU_ST7920_DELAY_1 DELAY_0_NOP
#define CPU_ST7920_DELAY_2 DELAY_0_NOP
#define CPU_ST7920_DELAY_3 DELAY_0_NOP

Loading…
Cancel
Save