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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * MALYAN M200 pin assignments
  25. */
  26. #if NONE(__STM32F1__, STM32F1xx, STM32F0xx)
  27. #error "Oops! Select an STM32 board in your IDE."
  28. #endif
  29. #define BOARD_INFO_NAME "Malyan M200"
  30. // Enable EEPROM Emulation for this board
  31. // This setting should probably be in configuration.h
  32. // but it is literally the only board which uses it.
  33. #define FLASH_EEPROM_EMULATION
  34. #define SDSS SS_PIN
  35. // Based on PWM timer usage, we have to use these timers and soft PWM for the fans
  36. // On STM32F103:
  37. // PB3, PB6, PB7, and PB8 can be used with pwm, which rules out TIM2 and TIM4.
  38. // On STM32F070, 16 and 17 are in use, but 1 and 3 are available.
  39. #undef STEP_TIMER
  40. #undef TEMP_TIMER
  41. #define STEP_TIMER 1
  42. #define TEMP_TIMER 3
  43. //
  44. // Limit Switches
  45. //
  46. #define X_MIN_PIN PB4
  47. #define Y_MIN_PIN PA15
  48. #define Z_MIN_PIN PB5
  49. //
  50. // Steppers
  51. //
  52. // X & Y enable are the same
  53. #define X_STEP_PIN PB14
  54. #define X_DIR_PIN PB15
  55. #define X_ENABLE_PIN PA8
  56. #define Y_STEP_PIN PB12
  57. #define Y_DIR_PIN PB13
  58. #define Y_ENABLE_PIN PA8
  59. #define Z_STEP_PIN PB10
  60. #define Z_DIR_PIN PB2
  61. #define Z_ENABLE_PIN PB11
  62. #define E0_STEP_PIN PB0
  63. #define E0_DIR_PIN PC13
  64. #define E0_ENABLE_PIN PB1
  65. //
  66. // Temperature Sensors
  67. //
  68. #define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
  69. #define TEMP_BED_PIN PA1 // Analog Input (BED thermistor)
  70. //
  71. // Heaters / Fans
  72. //
  73. #define HEATER_0_PIN PB6 // HOTEND0 MOSFET
  74. #define HEATER_BED_PIN PB7 // BED MOSFET
  75. #define MALYAN_FAN1_PIN PB8 // FAN1 header on board - PRINT FAN
  76. #define MALYAN_FAN2_PIN PB3 // FAN2 header on board - CONTROLLER FAN
  77. #define FAN1_PIN MALYAN_FAN2_PIN