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_M300.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. #if NOT_TARGET(__STM32F1__, STM32F1xx, STM32F0xx)
  24. #error "Oops! Select a 'Malyan M300' board in 'Tools > Board.'"
  25. #endif
  26. #define BOARD_INFO_NAME "Malyan M300"
  27. //
  28. // EEPROM Emulation
  29. //
  30. #if NO_EEPROM_SELECTED
  31. #define FLASH_EEPROM_EMULATION
  32. #ifndef MARLIN_EEPROM_SIZE
  33. #define MARLIN_EEPROM_SIZE 0x800U // 2K
  34. #endif
  35. #endif
  36. //
  37. // SD CARD SPI
  38. //
  39. #define SDSS SD_SS_PIN
  40. //
  41. // Timers
  42. //
  43. #define STEP_TIMER 6
  44. #define TEMP_TIMER 7
  45. //
  46. // Limit Switches
  47. //
  48. #define X_STOP_PIN PC13
  49. #define Y_STOP_PIN PC14
  50. #define Z_STOP_PIN PC15
  51. #ifndef Z_MIN_PROBE_PIN
  52. #define Z_MIN_PROBE_PIN PB7
  53. #endif
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN PB14
  58. #define X_DIR_PIN PB13
  59. #define X_ENABLE_PIN PB10
  60. #define Y_STEP_PIN PB12
  61. #define Y_DIR_PIN PB11
  62. #define Y_ENABLE_PIN PB10
  63. #define Z_STEP_PIN PB2
  64. #define Z_DIR_PIN PB1
  65. #define Z_ENABLE_PIN PB10
  66. #define E0_STEP_PIN PA7
  67. #define E0_DIR_PIN PA6
  68. #define E0_ENABLE_PIN PB0
  69. //
  70. // Temperature Sensors
  71. //
  72. #define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
  73. #define TEMP_BED_PIN PA4 // Analog Input (BED thermistor)
  74. //
  75. // Heaters / Fans
  76. //
  77. #define HEATER_0_PIN PA1 // HOTEND0 MOSFET
  78. #define HEATER_BED_PIN PA5 // BED MOSFET
  79. #define AUTO_FAN_PIN PA8