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_STEVAL.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2019 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. #ifndef STM32F4
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #endif
  26. #ifndef MACHINE_NAME
  27. #define MACHINE_NAME "STEVAL-3DP001V1"
  28. #endif
  29. #undef TEMP_TIMER
  30. #define TEMP_TIMER 9 // the Marlin default of timer 7 doesn't exist on the STM32MF401 series
  31. //
  32. // Limit Switches
  33. //
  34. #define X_MIN_PIN 38 // PD8 X_STOP
  35. #define X_MAX_PIN -1
  36. #define Y_MIN_PIN 39 // PD9 Y_STOP
  37. #define Y_MAX_PIN -1
  38. #define Z_MIN_PIN 40 // PD10 Z_STOP
  39. #define Z_MAX_PIN -1
  40. //
  41. // Z Probe (when not Z_MIN_PIN)
  42. //
  43. // #ifndef Z_MIN_PROBE_PIN
  44. // #define Z_MIN_PROBE_PIN 11 // PA4
  45. // #endif
  46. #define SCK_PIN 16 // PB13 SPI_S
  47. #define MISO_PIN 17 // PB14 SPI_M
  48. #define MOSI_PIN 18 // PB15 SPI_M
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN 60 // PE14 X_PWM
  53. #define X_DIR_PIN 61 // PE15 X_DIR
  54. #define X_ENABLE_PIN 59 // PE13 X_RES
  55. #define X_CS_PIN 11 // PA4 SPI_CS
  56. #define Y_STEP_PIN 62 // PB10 Y_PWM
  57. #define Y_DIR_PIN 63 // PE9 Y_DIR
  58. #define Y_ENABLE_PIN 64 // PE10 Y_RES
  59. #define Y_CS_PIN 11 // PA4 SPI_CS
  60. #define Z_STEP_PIN 66 // PC6 Z_PWM
  61. #define Z_DIR_PIN 67 // PC0 Z_DIR
  62. #define Z_ENABLE_PIN 65 // PC15 Z_RES
  63. #define Z_CS_PIN 11 // PA4 SPI_CS
  64. #define E0_STEP_PIN 70 // PD12 E1_PW
  65. #define E0_DIR_PIN 68 // PC13 E1_DIR
  66. #define E0_ENABLE_PIN 69 // PC14 E1_RE
  67. #define E0_CS_PIN 11 // PA4 SPI_CS
  68. #define E1_STEP_PIN 72 // PE5 E2_PWM
  69. #define E1_DIR_PIN 73 // PE6 E2_DIR
  70. #define E1_ENABLE_PIN 71 // PE4 E2_RESE
  71. #define E1_CS_PIN 11 // PA4 SPI_CS
  72. #define E2_STEP_PIN 76 // PB8 E3_PWM
  73. #define E2_DIR_PIN 74 // PE2 E3_DIR
  74. #define E2_ENABLE_PIN 75 // PE3 E3_RESE
  75. #define E2_CS_PIN 11 // PA4 SPI_CS
  76. //
  77. // Temperature Sensors
  78. //
  79. #define TEMP_0_PIN 52 // PA0 E1_THER
  80. #define TEMP_1_PIN 53 // PA1 E2_THER
  81. #define TEMP_BED_PIN 50 // PC2 BED_THE
  82. //
  83. // Heaters / Fans
  84. //
  85. #define HEATER_0_PIN 52 // PA0 E1_THER
  86. #define HEATER_1_PIN 53 // PA1 E2_THER
  87. #define HEATER_BED_PIN 50 // PC2 BED_THE
  88. #define FAN_PIN 56 // PC4 E1_FAN PWM pin, Part cooling fan
  89. #define FAN1_PIN 57 // PC5 E2_FAN PWM pin, Extruder fan
  90. #define FAN2_PIN 58 // PE8 E3_FAN PWM pin, Controller fan
  91. //
  92. // Misc functions
  93. //
  94. #define SDSS 11 // PA4 SPI_CS
  95. #define LED_PIN -1 // Heart beat
  96. #define PS_ON_PIN -1
  97. #define KILL_PIN -1
  98. #define PWR_LOSS -1 // Power loss / nAC_FAULT
  99. //
  100. // LCD / Controller
  101. //
  102. //#define SD_DETECT_PIN 24 // PA15 SD_CA
  103. //#define BEEPER_PIN 23 // PC9 SDIO_D1
  104. //#define LCD_PINS_RS 63 // PE9 Y_DIR
  105. //#define LCD_PINS_ENABLE 58 // PE8 E3_FAN
  106. //#define LCD_PINS_D4 15 // PB12 SPI_C
  107. //#define LCD_PINS_D5 16 // PB13 SPI_S
  108. //#define LCD_PINS_D6 17 // PB14 SPI_M
  109. //#define LCD_PINS_D7 18 // PB15 SPI_M
  110. //#define BTN_EN1 56 // PC4 E1_FAN
  111. //#define BTN_EN2 57 // PC5 E2_FAN
  112. //#define BTN_ENC 51 // PC3 BED_THE
  113. //
  114. // Filament runout detection
  115. //
  116. //#define FIL_RUNOUT_PIN 55 // PA3 BED_THE
  117. //
  118. // Extension pins
  119. //
  120. //#define EXT0_PIN 48 // PB0 E2_HEAT
  121. //#define EXT1_PIN 49 // PB1 E3_HEAT
  122. //#define EXT2_PIN // PB2
  123. //#define EXT3_PIN 38 // PD8 X_STOP
  124. //#define EXT4_PIN 39 // PD9 Y_STOP
  125. //#define EXT5_PIN 40 // PD10 Z_STOP
  126. //#define EXT6_PIN 41 // PD11
  127. //#define EXT7_PIN 70 // PD12 E1_PW
  128. //#define EXT8_PIN 62 // PB10 Y_PWM
  129. //#define EXT9_PIN // PB11