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 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. * MALYAN M200 pin assignments
  25. */
  26. #if NOT_TARGET(__STM32F1__, STM32F1xx, STM32F0xx)
  27. #error "Oops! Select an STM32 board in your IDE."
  28. #endif
  29. #ifndef BOARD_INFO_NAME
  30. #define BOARD_INFO_NAME "Malyan M200"
  31. #endif
  32. // Prevents hanging from an extra watchdog init
  33. #define DISABLE_WATCHDOG_INIT
  34. // Assume Flash EEPROM
  35. #if NO_EEPROM_SELECTED
  36. #define FLASH_EEPROM_EMULATION
  37. #endif
  38. #define SDSS SD_SS_PIN // Also in HAL/STM32F1/spi_pins.h
  39. // Based on PWM timer usage, we have to use these timers and soft PWM for the fans
  40. // On STM32F103:
  41. // PB3, PB6, PB7, and PB8 can be used with pwm, which rules out TIM2 and TIM4.
  42. // On STM32F070, 16 and 17 are in use, but 1 and 3 are available.
  43. #define STEP_TIMER 1
  44. #define TEMP_TIMER 3
  45. //
  46. // Limit Switches
  47. //
  48. #define X_STOP_PIN PB4
  49. #define Y_STOP_PIN PA15
  50. #define Z_STOP_PIN PB5
  51. //
  52. // Steppers
  53. //
  54. // X & Y enable are the same
  55. #define X_STEP_PIN PB14
  56. #define X_DIR_PIN PB15
  57. #define X_ENABLE_PIN PA8
  58. #define Y_STEP_PIN PB12
  59. #define Y_DIR_PIN PB13
  60. #define Y_ENABLE_PIN PA8
  61. #define Z_STEP_PIN PB10
  62. #define Z_DIR_PIN PB2
  63. #define Z_ENABLE_PIN PB11
  64. #define E0_STEP_PIN PB0
  65. #define E0_DIR_PIN PC13
  66. #define E0_ENABLE_PIN PB1
  67. //
  68. // Temperature Sensors
  69. //
  70. #define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
  71. #define TEMP_BED_PIN PA1 // Analog Input (BED thermistor)
  72. //
  73. // Heaters / Fans
  74. //
  75. #define HEATER_0_PIN PB6 // HOTEND0 MOSFET
  76. #define HEATER_BED_PIN PB7 // BED MOSFET
  77. #define MALYAN_FAN1_PIN PB8 // FAN1 header on board - PRINT FAN
  78. #define MALYAN_FAN2_PIN PB3 // FAN2 header on board - CONTROLLER FAN
  79. #define FAN1_PIN MALYAN_FAN2_PIN