2019-11-20 00:06:26 -06:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 08:00:57 -06:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2019-11-20 00:06:26 -06:00
|
|
|
*
|
|
|
|
* 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
|
2020-07-22 22:20:14 -05:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2019-11-20 00:06:26 -06:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2020-01-02 21:15:34 -06:00
|
|
|
#ifdef SKR_HAS_LPC1769
|
2020-09-23 15:06:36 -05:00
|
|
|
#if NOT_TARGET(MCU_LPC1769)
|
2020-01-02 21:15:34 -06:00
|
|
|
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
|
|
|
#endif
|
2020-09-23 15:06:36 -05:00
|
|
|
#elif NOT_TARGET(MCU_LPC1768)
|
2019-11-20 00:06:26 -06:00
|
|
|
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Ignore temp readings during development.
|
2020-08-22 01:22:14 -05:00
|
|
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
2019-11-20 00:06:26 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2019-12-19 02:41:35 -06:00
|
|
|
#ifndef E1_STEP_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define E1_STEP_PIN P0_01
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
|
|
|
#ifndef E1_DIR_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define E1_DIR_PIN P0_00
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
|
|
|
#ifndef E1_ENABLE_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define E1_ENABLE_PIN P0_10
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
2019-11-20 00:06:26 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
// 3.3V max when defined as an analog input
|
|
|
|
//
|
2019-12-19 02:41:35 -06:00
|
|
|
#ifndef TEMP_0_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define TEMP_0_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_0_PIN
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
|
|
|
#ifndef TEMP_1_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
|
|
|
#ifndef TEMP_BED_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
|
2019-12-19 02:41:35 -06:00
|
|
|
#endif
|
2020-03-03 14:52:10 -06:00
|
|
|
|
2020-06-19 14:01:15 -05:00
|
|
|
#if HOTENDS == 1
|
|
|
|
#if TEMP_SENSOR_PROBE
|
|
|
|
#define TEMP_PROBE_PIN TEMP_1_PIN
|
|
|
|
#elif TEMP_SENSOR_CHAMBER
|
|
|
|
#define TEMP_CHAMBER_PIN TEMP_1_PIN
|
|
|
|
#endif
|
2020-01-17 17:16:45 -06:00
|
|
|
#endif
|
2019-11-20 00:06:26 -06:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
#ifndef HEATER_0_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define HEATER_0_PIN P2_07
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
#if HOTENDS == 1
|
|
|
|
#ifndef FAN1_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define FAN1_PIN P2_04
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#ifndef HEATER_1_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define HEATER_1_PIN P2_04
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifndef FAN_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define FAN_PIN P2_03
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
#ifndef HEATER_BED_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define HEATER_BED_PIN P2_05
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2020-10-10 05:01:46 -05:00
|
|
|
#if HAS_WIRED_LCD && DISABLED(LCD_USE_I2C_BUZZER)
|
2020-03-21 21:13:19 -05:00
|
|
|
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
2019-11-20 00:06:26 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// SD Support
|
|
|
|
//
|
2020-03-21 21:13:19 -05:00
|
|
|
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
2019-11-20 00:06:26 -06:00
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(LCD)
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SCK_PIN P0_15
|
|
|
|
#define MISO_PIN P0_17
|
|
|
|
#define MOSI_PIN P0_18
|
2019-11-20 00:06:26 -06:00
|
|
|
#elif SD_CONNECTION_IS(ONBOARD)
|
|
|
|
#undef SD_DETECT_PIN
|
2020-03-21 21:13:19 -05:00
|
|
|
#define SD_DETECT_PIN P0_27
|
|
|
|
#define SCK_PIN P0_07
|
|
|
|
#define MISO_PIN P0_08
|
|
|
|
#define MOSI_PIN P0_09
|
|
|
|
#define SS_PIN ONBOARD_SD_CS_PIN
|
2019-11-20 00:06:26 -06:00
|
|
|
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
|
|
|
#error "No custom SD drive cable defined for this board."
|
|
|
|
#endif
|