Firmware2/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h

61 lines
2.1 KiB
C
Raw Normal View History

2019-04-16 00:03:10 +02:00
/**
* Marlin 3D Printer Firmware
2020-02-03 15:00:57 +01:00
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
2019-04-16 00:03:10 +02:00
*
* Based on Sprinter and grbl.
2019-06-28 06:57:50 +02:00
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
2019-04-16 00:03:10 +02:00
*
* 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/>.
*
*/
2019-07-05 05:44:12 +02:00
#pragma once
2019-04-16 00:03:10 +02:00
/**
* MKS SGen pin assignments
*
* The pins diagram can be found and the following URL:
* https://github.com/makerbase-mks/MKS-SGen/blob/master/Hardware/MKS%20SGEN%20V1.0_001/MKS%20SGEN%20V1.0_001%20PIN.pdf
*
2019-04-16 00:03:10 +02:00
*/
#ifndef MCU_LPC1769
2019-04-16 00:03:10 +02:00
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
#endif
2019-08-21 02:08:58 +02:00
#define BOARD_INFO_NAME "MKS SGen"
2019-08-23 01:17:13 +02:00
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
2019-04-16 00:03:10 +02:00
#define MKS_HAS_LPC1769
2019-07-11 09:32:24 +02:00
#include "../lpc1768/pins_MKS_SBASE.h"
2019-04-16 00:03:10 +02:00
2020-03-17 21:05:33 +01:00
#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*/
2019-04-16 00:03:10 +02:00
#define X_SERIAL_TX_PIN P1_22 // J8-2
#define X_SERIAL_RX_PIN P1_22 // J8-2
#define Y_SERIAL_TX_PIN P1_23 // J8-3
#define Y_SERIAL_RX_PIN P1_23 // J8-3
#define Z_SERIAL_TX_PIN P2_12 // J8-4
#define Z_SERIAL_RX_PIN P2_12 // J8-4
#define E0_SERIAL_TX_PIN P2_11 // J8-5
#define E0_SERIAL_RX_PIN P2_11 // J8-5
#define E1_SERIAL_TX_PIN P4_28 // J8-6
#define E1_SERIAL_RX_PIN P4_28 // J8-6
2019-11-10 02:45:10 +01:00
2019-11-07 00:08:12 +01:00
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
2019-04-16 00:03:10 +02:00
#endif