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_MALYAN_M200.h 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. /**
  23. * MALYAN M200 pin assignments
  24. */
  25. #if !defined(__STM32F1__) && !defined(STM32F1xx) && !defined(STM32F0xx)
  26. #error "Oops! You must be compiling for STM32."
  27. #endif
  28. #define BOARD_NAME "MALYANM200"
  29. // Enable EEPROM Emulation for this board
  30. // This setting should probably be in configuration.h
  31. // but it is literally the only board which uses it.
  32. #define FLASH_EEPROM_EMULATION
  33. #define SDSS SS_PIN
  34. // Based on PWM timer usage, we have to use these timers and soft PWM for the fans
  35. // On STM32F103:
  36. // PB3, PB6, PB7, and PB8 can be used with pwm, which rules out TIM2 and TIM4.
  37. // On STM32F070, 16 and 17 are in use, but 1 and 3 are available.
  38. #define STEP_TIMER 1
  39. #define TEMP_TIMER 3
  40. //
  41. // Limit Switches
  42. //
  43. #define X_MIN_PIN PB4
  44. #define Y_MIN_PIN PA15
  45. #define Z_MIN_PIN PB5
  46. //
  47. // Steppers
  48. //
  49. // X & Y enable are the same
  50. #define X_STEP_PIN PB14
  51. #define X_DIR_PIN PB15
  52. #define X_ENABLE_PIN PA8
  53. #define Y_STEP_PIN PB12
  54. #define Y_DIR_PIN PB13
  55. #define Y_ENABLE_PIN PA8
  56. #define Z_STEP_PIN PB10
  57. #define Z_DIR_PIN PB2
  58. #define Z_ENABLE_PIN PB11
  59. #define E0_STEP_PIN PB0
  60. #define E0_DIR_PIN PC13
  61. #define E0_ENABLE_PIN PB1
  62. //
  63. // Temperature Sensors
  64. //
  65. #define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
  66. #define TEMP_BED_PIN PA1 // Analog Input (BED thermistor)
  67. //
  68. // Heaters / Fans
  69. //
  70. #define HEATER_0_PIN PB6 // HOTEND0 MOSFET
  71. #define HEATER_BED_PIN PB7 // BED MOSFET
  72. // FAN_PIN is commented out here because the M200 example
  73. // Configuration_adv.h does NOT override E0_AUTO_FAN_PIN.
  74. #ifndef FAN_PIN
  75. //#define FAN_PIN PB8 // FAN1 header on board - PRINT FAN
  76. #endif
  77. #define FAN1_PIN PB3 // FAN2 header on board - CONTROLLER FAN
  78. #define FAN2_PIN -1 // FAN3 header on board - EXTRUDER0 FAN
  79. // This board has only the controller fan and the extruder fan
  80. // If someone hacks to put a direct power fan on the controller, PB3 could
  81. // be used as a separate print cooling fan.
  82. #define ORIG_E0_AUTO_FAN_PIN PB8