From ccc1107dbe986a4dc6dc5a0c31d58ee7d98579e0 Mon Sep 17 00:00:00 2001
From: Aleksander Sobolewski <aleks.sobolewski@outlook.com>
Date: Sat, 2 Mar 2019 19:46:46 +0100
Subject: [PATCH] config: Generic board BIGTREETECH SKR V.1.3 config

Signed-off-by: Aleksander Sobolewski <aleks.sobolewski@outlook.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
---
 config/generic-bigtreetech-skr-v1.3.cfg | 156 ++++++++++++++++++++++++
 test/klippy/printers.test               |   1 +
 2 files changed, 157 insertions(+)
 create mode 100644 config/generic-bigtreetech-skr-v1.3.cfg

diff --git a/config/generic-bigtreetech-skr-v1.3.cfg b/config/generic-bigtreetech-skr-v1.3.cfg
new file mode 100644
index 000000000..ee5194f49
--- /dev/null
+++ b/config/generic-bigtreetech-skr-v1.3.cfg
@@ -0,0 +1,156 @@
+# This file contains common pin mappings for the BIGTREETECH SKR V1.3
+# board. To use this config, the firmware should be compiled for the
+# LPC176x.
+
+# See the example.cfg file for a description of available parameters.
+
+
+########################
+# TMC2208 configuration
+########################
+
+# Your SKR 1.3 board is likely to be shipped with lots of jumpers
+# plugged in, together with some spare ones. In order for board to
+# work properly, you may need to add/remove some of the jumpers.
+
+# For TMC2208 UART
+#   1) Remove all of the jumpers below the stepper drivers
+#   2) Place jumpers on the red pin headers labeled XUART (XUART, YUART etc.)
+
+#[tmc2208 stepper_x]
+#uart_pin: P1.17
+#microsteps: 16
+#interpolate: true
+#run_current: 0.800
+#hold_current: 0.500
+#stealthchop_threshold: 250
+
+#[tmc2208 stepper_y]
+#uart_pin: P1.15
+#microsteps: 16
+#run_current: 0.850
+#hold_current: 0.500
+#stealthchop_threshold: 250
+
+#[tmc2208 stepper_z]
+#uart_pin: P1.10
+#microsteps: 16
+#run_current: 0.650
+#hold_current: 0.450
+#stealthchop_threshold: 30
+
+#[tmc2208 extruder]
+#uart_pin: P1.8
+#microsteps: 16
+#run_current: 0.800
+#hold_current: 0.500
+#stealthchop_threshold: 5
+
+
+########################
+# Main configuration
+########################
+
+## Basic steppers configuration ##
+
+[stepper_x]
+step_pin: P2.2
+dir_pin: !P2.6
+enable_pin: !P2.1
+step_distance: .0125
+endstop_pin: P1.29
+position_endstop: 0
+position_max: 320
+homing_speed: 50
+
+[stepper_y]
+step_pin: P0.19
+dir_pin: !P0.20
+enable_pin: !P2.8
+step_distance: .0125
+endstop_pin: P1.27
+position_endstop: 0
+position_max: 300
+homing_speed: 50
+
+[stepper_z]
+step_pin: P0.22
+dir_pin: P2.11
+enable_pin: !P0.21
+step_distance: .0025
+endstop_pin: P1.25
+position_endstop: 0.5
+position_max: 400
+
+## Extruder configuration ##
+
+[extruder]
+step_pin: P2.13
+dir_pin: !P0.11
+enable_pin: !P2.12
+step_distance: .010526
+nozzle_diameter: 0.400
+filament_diameter: 1.750
+heater_pin: P2.4
+sensor_type: EPCOS 100K B57560G104F
+sensor_pin: P0.24
+control: pid
+pid_Kp: 22.2
+pid_Ki: 1.08
+pid_Kd: 114
+min_temp: 0
+max_temp: 260
+
+## Heatbed configuration ##
+
+[heater_bed]
+heater_pin: P2.5
+sensor_type: ATC Semitec 104GT-2
+sensor_pin: P0.23
+control: watermark
+min_temp: 0
+max_temp: 130
+
+## Additional configuration ##
+
+[fan]
+pin: P2.3
+
+[mcu]
+serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
+
+[printer]
+kinematics: cartesian
+max_velocity: 200
+max_accel: 2000
+max_z_velocity: 25
+max_z_accel: 100
+
+## RepRapDiscount Full Graphic Smart Controller ##
+
+#[display]
+#lcd_type: st7920
+#cs_pin: P1.19
+#sclk_pin: P1.20
+#sid_pin: P1.18
+#encoder_pins: ^P3.26, ^P3.25
+#click_pin: ^!P0.28
+#
+#[output_pin beeper]
+#pins: !P1.30
+
+## RepRapDiscount Smart Controller ##
+
+#[display]
+#lcd_type: hd44780
+#rs_pin: P1.19
+#e_pin: P1.18
+#d4_pin: P1.20
+#d5_pin: P1.21
+#d6_pin: P1.22
+#d7_pin: P1.23
+#encoder_pins: ^P3.26, ^P3.25
+#click_pin: ^!P0.28
+#
+#[output_pin beeper]
+#pins: !P1.30
diff --git a/test/klippy/printers.test b/test/klippy/printers.test
index e29e35817..84e26bb09 100644
--- a/test/klippy/printers.test
+++ b/test/klippy/printers.test
@@ -66,6 +66,7 @@ CONFIG ../../config/generic-duet2.cfg
 DICTIONARY lpc176x.dict
 CONFIG ../../config/generic-azteeg-x5-mini-v3.cfg
 CONFIG ../../config/generic-bigtreetech-skr-v1.1.cfg
+CONFIG ../../config/generic-bigtreetech-skr-v1.3.cfg
 CONFIG ../../config/generic-re-arm.cfg
 CONFIG ../../config/generic-smoothieboard.cfg