My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pins_GENERIC_STM32F4.h 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. /**
  24. * To build with Arduino IDE use "Discovery F407VG"
  25. * To build with PlatformIO use environment "STM32F4"
  26. */
  27. #if NOT_TARGET(STM32F4, STM32F4xx)
  28. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  29. #elif HOTENDS > 2 || E_STEPPERS > 2
  30. #error "STM32F4 supports up to 2 hotends / E-steppers."
  31. #endif
  32. #define BOARD_INFO_NAME "Misc. STM32F4"
  33. #define DEFAULT_MACHINE_NAME "STM32F407VET6"
  34. //#define I2C_EEPROM
  35. #ifndef MARLIN_EEPROM_SIZE
  36. #define MARLIN_EEPROM_SIZE 0x1000 // 4KB
  37. #endif
  38. // Ignore temp readings during development.
  39. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  40. //
  41. // Limit Switches
  42. //
  43. #define X_MIN_PIN PE0
  44. #define X_MAX_PIN -1
  45. #define Y_MIN_PIN PE1
  46. #define Y_MAX_PIN -1
  47. #define Z_MIN_PIN PE14
  48. #define Z_MAX_PIN -1
  49. //
  50. // Z Probe (when not Z_MIN_PIN)
  51. //
  52. //#ifndef Z_MIN_PROBE_PIN
  53. // #define Z_MIN_PROBE_PIN PA4
  54. //#endif
  55. //
  56. // Steppers
  57. //
  58. #define X_STEP_PIN PD3
  59. #define X_DIR_PIN PD2
  60. #define X_ENABLE_PIN PD0
  61. //#ifndef X_CS_PIN
  62. // #define X_CS_PIN PD1
  63. //#endif
  64. #define Y_STEP_PIN PE11
  65. #define Y_DIR_PIN PE10
  66. #define Y_ENABLE_PIN PE13
  67. //#ifndef Y_CS_PIN
  68. // #define Y_CS_PIN PE12
  69. //#endif
  70. #define Z_STEP_PIN PD6
  71. #define Z_DIR_PIN PD7
  72. #define Z_ENABLE_PIN PD4
  73. //#ifndef Z_CS_PIN
  74. // #define Z_CS_PIN PD5
  75. //#endif
  76. #define E0_STEP_PIN PB5
  77. #define E0_DIR_PIN PB6
  78. #define E0_ENABLE_PIN PB3
  79. //#ifndef E0_CS_PIN
  80. // #define E0_CS_PIN PB4
  81. //#endif
  82. #define E1_STEP_PIN PE4
  83. #define E1_DIR_PIN PE2
  84. #define E1_ENABLE_PIN PE3
  85. //#ifndef E1_CS_PIN
  86. // #define E1_CS_PIN PE5
  87. //#endif
  88. #define SCK_PIN PA5
  89. #define MISO_PIN PA6
  90. #define MOSI_PIN PA7
  91. //
  92. // Temperature Sensors
  93. //
  94. #define TEMP_0_PIN PC0 // Analog Input
  95. #define TEMP_1_PIN PC1 // Analog Input
  96. #define TEMP_BED_PIN PC2 // Analog Input
  97. //
  98. // Heaters / Fans
  99. //
  100. #define HEATER_0_PIN PA1
  101. #define HEATER_1_PIN PA2
  102. #define HEATER_BED_PIN PA0
  103. #ifndef FAN_PIN
  104. #define FAN_PIN PC6
  105. #endif
  106. #define FAN1_PIN PC7
  107. #define FAN2_PIN PC8
  108. #ifndef E0_AUTO_FAN_PIN
  109. #define E0_AUTO_FAN_PIN PC7
  110. #endif
  111. //
  112. // Misc. Functions
  113. //
  114. //#define CASE_LIGHT_PIN_CI PF13
  115. //#define CASE_LIGHT_PIN_DO PF14
  116. //#define NEOPIXEL_PIN PF13
  117. //
  118. // Průša i3 MK2 Multi Material Multiplexer Support
  119. //
  120. //#define E_MUX0_PIN PG3
  121. //#define E_MUX1_PIN PG4
  122. //
  123. // Servos
  124. //
  125. //#define SERVO0_PIN PE13
  126. //#define SERVO1_PIN PE14
  127. #define SDSS PE7
  128. #define SS_PIN PE7
  129. #define LED_PIN PB7 //Alive
  130. #define PS_ON_PIN PA10
  131. #define KILL_PIN PA8
  132. #define PWR_LOSS PA4 //Power loss / nAC_FAULT
  133. //
  134. // LCD / Controller
  135. //
  136. #define SD_DETECT_PIN PA15
  137. #define BEEPER_PIN PC9
  138. #define LCD_PINS_RS PE9
  139. #define LCD_PINS_ENABLE PE8
  140. #define LCD_PINS_D4 PB12
  141. #define LCD_PINS_D5 PB13
  142. #define LCD_PINS_D6 PB14
  143. #define LCD_PINS_D7 PB15
  144. #define BTN_EN1 PC4
  145. #define BTN_EN2 PC5
  146. #define BTN_ENC PC3
  147. //
  148. // Filament runout
  149. //
  150. #define FIL_RUNOUT_PIN PA3
  151. //
  152. // ST7920 Delays
  153. //
  154. #if HAS_MARLINUI_U8GLIB
  155. #ifndef BOARD_ST7920_DELAY_1
  156. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  157. #endif
  158. #ifndef BOARD_ST7920_DELAY_2
  159. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  160. #endif
  161. #ifndef BOARD_ST7920_DELAY_3
  162. #define BOARD_ST7920_DELAY_3 DELAY_NS(715)
  163. #endif
  164. #endif