From 7c5b1085310fbb7818d9bb10b5336a975d6dbe12 Mon Sep 17 00:00:00 2001 From: Jon C Date: Tue, 1 Sep 2020 17:00:48 +0200 Subject: [PATCH] config: Replicape config updates with pin aliases (#3269) Adding board_pins section. Added linux host MCU board pin aliases for endstops. Also added a sample filament switch sensor config. Signed-off-by: Jon Charnas --- config/generic-replicape.cfg | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/config/generic-replicape.cfg b/config/generic-replicape.cfg index fe685b31..90a10f38 100644 --- a/config/generic-replicape.cfg +++ b/config/generic-replicape.cfg @@ -134,3 +134,31 @@ pin: replicape:power_fan0 # PWM output pin controlling the servo. This parameter must be # provided. #... + +# Providing an example of a switch filament sensor using the Linux MCU for replicape, instead of the PRU which does not have enough memory: +#[filament_switch_sensor switch_sensor] +#switch_pin: HOST_X2_STOP + +# providing board pin aliases +[board_pins] +aliases: + # step/dir pins + X_DIR=P8_26, X_STEP=P8_17, Y_DIR=P8_19, Y_STEP=P8_12, Z_DIR=P8_14, Z_STEP=P8_13, + E_DIR=P8_15, E_STEP=P9_12, H_DIR=P8_16, H_STEP=P8_11, + # stepper fault pins + FAULT_X=P8_10, FAULT_Y=P8_9, FAULT_Z=P9_24, FAULT_E=P8_18, FAULT_H=P8_8, + # endstops + STOP_X1=P9_25, STOP_X2=P9_11, STOP_Y1=P9_23, STOP_Y2=P9_28, STOP_Z1=P9_13, STOP_Z2=P9_18, + # enable steppers (all on one pin) + STEPPER_ENABLE=P9_41, + # servos + SERVO_0=P9_14, SERVO_1=P9_16, + # Thermistors + THERM_E=P9_33, THERM_H=P9_36, THERM_BED=P9_35, + # D1W pin + DALLAS=P9_22 + +[board_pins host] +aliases: + # Host aliases for Linux MCU + HOST_X2_STOP=gpio30, HOST_Y2_STOP=gpio113, HOST_Z2_STOP=gpio4