|
| 1 | +/** |
| 2 | + * Marlin 3D Printer Firmware |
| 3 | + * Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] |
| 4 | + * |
| 5 | + * Based on Sprinter and grbl. |
| 6 | + * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm |
| 7 | + * |
| 8 | + * This program is free software: you can redistribute it and/or modify |
| 9 | + * it under the terms of the GNU General Public License as published by |
| 10 | + * the Free Software Foundation, either version 3 of the License, or |
| 11 | + * (at your option) any later version. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, |
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + * GNU General Public License for more details. |
| 17 | + * |
| 18 | + * You should have received a copy of the GNU General Public License |
| 19 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 | + * |
| 21 | + */ |
| 22 | +#pragma once |
| 23 | + |
| 24 | +/** |
| 25 | + * Sovol 1.3.1 (GD32F103RET6) board pin assignments |
| 26 | + */ |
| 27 | + |
| 28 | +#include "env_validate.h" |
| 29 | + |
| 30 | +#if HAS_MULTI_HOTEND || E_STEPPERS > 1 |
| 31 | + #error "SOVOL V131 only supports 1 hotend / E-stepper." |
| 32 | + #define E_ERROR 1 |
| 33 | +#endif |
| 34 | + |
| 35 | +#ifndef BOARD_INFO_NAME |
| 36 | + #define BOARD_INFO_NAME "Sovol V131" |
| 37 | +#endif |
| 38 | +#ifndef DEFAULT_MACHINE_NAME |
| 39 | + #define DEFAULT_MACHINE_NAME "Sovol SV06" |
| 40 | +#endif |
| 41 | + |
| 42 | +#include "../stm32f1/pins_CREALITY_V4.h" |
| 43 | + |
| 44 | +#if HAS_TMC_UART |
| 45 | + |
| 46 | + /** |
| 47 | + * TMC2208/TMC2209 stepper drivers |
| 48 | + * |
| 49 | + * Hardware serial communication ports. |
| 50 | + * If undefined software serial is used according to the pins below |
| 51 | + */ |
| 52 | + |
| 53 | + #define X_SERIAL_TX_PIN PC1 |
| 54 | + #define X_SERIAL_RX_PIN PC1 |
| 55 | + |
| 56 | + #define Y_SERIAL_TX_PIN PC0 |
| 57 | + #define Y_SERIAL_RX_PIN PC0 |
| 58 | + |
| 59 | + #define Z_SERIAL_TX_PIN PA15 |
| 60 | + #define Z_SERIAL_RX_PIN PA15 |
| 61 | + |
| 62 | + #define E0_SERIAL_TX_PIN PC14 |
| 63 | + #define E0_SERIAL_RX_PIN PC14 |
| 64 | + |
| 65 | + // Reduce baud rate to improve software serial reliability |
| 66 | + #define TMC_BAUD_RATE 19200 |
| 67 | + |
| 68 | +#endif // HAS_TMC_UART |
| 69 | + |
| 70 | +// |
| 71 | +// SD Card |
| 72 | +// |
| 73 | +#define ONBOARD_SPI_DEVICE 1 |
| 74 | +#define ONBOARD_SD_CS_PIN PA4 // SDSS |
0 commit comments