My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_MKS_ROBIN_NANO_V3.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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. #define ALLOW_STM32DUINO
  24. #include "env_validate.h"
  25. #if HOTENDS > 2 || E_STEPPERS > 2
  26. #error "MKS Robin Nano V3 supports up to 2 hotends / E steppers."
  27. #elif HAS_FSMC_TFT
  28. #error "MKS Robin Nano V3 doesn't support FSMC-based TFT displays."
  29. #endif
  30. #define BOARD_INFO_NAME "MKS Robin Nano V3"
  31. #define USES_DIAG_JUMPERS
  32. #ifndef X_CS_PIN
  33. #define X_CS_PIN PD5
  34. #endif
  35. #ifndef Y_CS_PIN
  36. #define Y_CS_PIN PD7
  37. #endif
  38. #ifndef Z_CS_PIN
  39. #define Z_CS_PIN PD4
  40. #endif
  41. #ifndef E0_CS_PIN
  42. #define E0_CS_PIN PD9
  43. #endif
  44. #ifndef E1_CS_PIN
  45. #define E1_CS_PIN PD8
  46. #endif
  47. //
  48. // Software SPI pins for TMC2130 stepper drivers
  49. // This board only supports SW SPI for stepper drivers
  50. //
  51. #if HAS_TMC_SPI
  52. #define TMC_USE_SW_SPI
  53. #endif
  54. #if ENABLED(TMC_USE_SW_SPI)
  55. #if !defined(TMC_SW_MOSI) || TMC_SW_MOSI == -1
  56. #define TMC_SW_MOSI PD14
  57. #endif
  58. #if !defined(TMC_SW_MISO) || TMC_SW_MISO == -1
  59. #define TMC_SW_MISO PD1
  60. #endif
  61. #if !defined(TMC_SW_SCK) || TMC_SW_SCK == -1
  62. #define TMC_SW_SCK PD0
  63. #endif
  64. #endif
  65. #include "pins_MKS_ROBIN_NANO_V3_common.h"