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_STM32F1R.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. #include "env_validate.h"
  24. /**
  25. * 21017 Victor Perez Marlin for stm32f1 test
  26. */
  27. #define BOARD_INFO_NAME "Misc. STM32F1R"
  28. #define DEFAULT_MACHINE_NAME "STM32F103RET6"
  29. // Ignore temp readings during development.
  30. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  31. //
  32. // Limit Switches
  33. //
  34. #define X_STOP_PIN PB3
  35. #define Y_STOP_PIN PB4
  36. #define Z_STOP_PIN PB5
  37. //
  38. // Steppers
  39. //
  40. #define X_STEP_PIN PC0
  41. #define X_DIR_PIN PC1
  42. #define X_ENABLE_PIN PA8
  43. #define Y_STEP_PIN PC2
  44. #define Y_DIR_PIN PC3
  45. #define Y_ENABLE_PIN PA8
  46. #define Z_STEP_PIN PC4
  47. #define Z_DIR_PIN PC5
  48. #define Z_ENABLE_PIN PA8
  49. #define E0_STEP_PIN PC6
  50. #define E0_DIR_PIN PC7
  51. #define E0_ENABLE_PIN PA8
  52. /**
  53. * TODO: Currently using same Enable pin to all steppers.
  54. */
  55. #define E1_STEP_PIN PC8
  56. #define E1_DIR_PIN PC9
  57. #define E1_ENABLE_PIN PA8
  58. #define E2_STEP_PIN PC10
  59. #define E2_DIR_PIN PC11
  60. #define E2_ENABLE_PIN PA8
  61. //
  62. // Misc. Functions
  63. //
  64. #define SDSS PA4
  65. #define LED_PIN PD2
  66. //
  67. // Heaters / Fans
  68. //
  69. #define HEATER_0_PIN PB0 // EXTRUDER 1
  70. #define HEATER_1_PIN PB1
  71. #define HEATER_BED_PIN PA3 // BED
  72. //
  73. // Temperature Sensors
  74. //
  75. #define TEMP_BED_PIN PA0 // Analog Input
  76. #define TEMP_0_PIN PA1 // Analog Input
  77. #define TEMP_1_PIN PA2 // Analog Input
  78. //
  79. // LCD Pins
  80. //
  81. #if HAS_WIRED_LCD
  82. #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  83. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  84. #else
  85. #define LCD_PINS_RS PB8
  86. #define LCD_PINS_ENABLE PD2
  87. #define LCD_PINS_D4 PB12
  88. #define LCD_PINS_D5 PB13
  89. #define LCD_PINS_D6 PB14
  90. #define LCD_PINS_D7 PB15
  91. #if !IS_NEWPANEL
  92. #error "Non-NEWPANEL LCD is not supported."
  93. #endif
  94. #endif
  95. #if IS_NEWPANEL
  96. #if IS_RRD_SC
  97. #error "RRD Smart Controller is not supported."
  98. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  99. #error "REPRAPWORLD_GRAPHICAL_LCD is not supported."
  100. #elif ENABLED(LCD_I2C_PANELOLU2)
  101. #error "LCD_I2C_PANELOLU2 is not supported."
  102. #elif ENABLED(LCD_I2C_VIKI)
  103. #error "LCD_I2C_VIKI is not supported."
  104. #elif EITHER(VIKI2, miniVIKI)
  105. #error "VIKI2 / miniVIKI is not supported."
  106. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  107. #error "ELB_FULL_GRAPHIC_CONTROLLER is not supported."
  108. #elif ENABLED(MINIPANEL)
  109. #error "MINIPANEL is not supported."
  110. #else
  111. #error "Other generic NEWPANEL LCD is not supported."
  112. #endif
  113. #endif
  114. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  115. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  116. #endif
  117. #endif // HAS_WIRED_LCD