My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. #ifndef _VARIANT_ARDUINO_STM32_
  2. #define _VARIANT_ARDUINO_STM32_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif // __cplusplus
  6. /*----------------------------------------------------------------------------
  7. * Pins
  8. *----------------------------------------------------------------------------*/
  9. #define PE2 0
  10. #define PE3 1
  11. #define PE4 2
  12. #define PE5 3
  13. #define PE6 4
  14. #define PI8 5
  15. #define PC13 6
  16. #define PC14 7
  17. #define PC15 8
  18. #define PI9 9
  19. #define PI10 10
  20. #define PI11 11
  21. #define PF0 12
  22. #define PF1 13
  23. #define PF2 14
  24. #define PH0 15
  25. #define PH1 16
  26. #define PB2 17
  27. #define PF15 18
  28. #define PG0 19
  29. #define PG1 20
  30. #define PE7 21
  31. #define PE8 22
  32. #define PE9 23
  33. #define PE10 24
  34. #define PE11 25
  35. #define PE12 26
  36. #define PE13 27
  37. #define PE14 28
  38. #define PE15 29
  39. #define PB10 30
  40. #define PB11 31
  41. #define PH6 32
  42. #define PH7 33
  43. #define PH8 34
  44. #define PH9 35
  45. #define PH10 36
  46. #define PH11 37
  47. #define PH12 38
  48. #define PB12 39
  49. #define PB13 40
  50. #define PB14 41
  51. #define PB15 42
  52. #define PD8 43
  53. #define PD9 44
  54. #define PD10 45
  55. #define PD11 46
  56. #define PD12 47
  57. #define PD13 48
  58. #define PD14 49
  59. #define PD15 50
  60. #define PG2 51
  61. #define PG3 52
  62. #define PG4 53
  63. #define PG5 54
  64. #define PG6 55
  65. #define PG7 56
  66. #define PG8 57
  67. #define PC6 58
  68. #define PC7 59
  69. #define PC8 60
  70. #define PC9 61
  71. #define PA8 62
  72. #define PA9 63
  73. #define PA10 64
  74. #define PA11 65
  75. #define PA12 66
  76. #define PA13 67
  77. #define PH13 68
  78. #define PH14 69
  79. #define PH15 70
  80. #define PI0 71
  81. #define PI1 72
  82. #define PI2 73
  83. #define PI3 74
  84. #define PA14 75
  85. #define PA15 76
  86. #define PC10 77
  87. #define PC11 78
  88. #define PC12 79
  89. #define PD0 80
  90. #define PD1 81
  91. #define PD2 82
  92. #define PD3 83
  93. #define PD4 84
  94. #define PD5 85
  95. #define PD6 86
  96. #define PD7 87
  97. #define PG9 88
  98. #define PG10 89
  99. #define PG11 90
  100. #define PG12 91
  101. #define PG13 92
  102. #define PG14 93
  103. #define PG15 94
  104. #define PB3 95
  105. #define PB4 96
  106. #define PB5 97
  107. #define PB6 98
  108. #define PB7 99
  109. #define PB8 100
  110. #define PB9 101
  111. #define PE0 102
  112. #define PE1 103
  113. #define PI4 104
  114. #define PI5 105
  115. #define PI6 106
  116. #define PI7 107
  117. #define PA0 108
  118. #define PA1 109
  119. #define PA2 110
  120. #define PA3 111
  121. #define PA4 112
  122. #define PA5 113
  123. #define PA6 114
  124. #define PA7 115
  125. #define PB0 116
  126. #define PB1 117
  127. #define PH2 118
  128. #define PH3 119
  129. #define PH4 120
  130. #define PH5 121
  131. #define PC0 122
  132. #define PC1 123
  133. #define PC2 124
  134. #define PC3 125
  135. #define PC4 126
  136. #define PC5 127
  137. #define PF3 128
  138. #define PF4 129
  139. #define PF5 130
  140. #define PF6 131
  141. #define PF7 132
  142. #define PF8 133
  143. #define PF9 134
  144. #define PF10 135
  145. #define PF11 136
  146. #define PF12 137
  147. #define PF13 138
  148. #define PF14 139
  149. // This must be a literal with the same value as PEND
  150. #define NUM_DIGITAL_PINS 140
  151. // This must be a literal with a value less than or equal to to MAX_ANALOG_INPUTS
  152. #define NUM_ANALOG_INPUTS 24
  153. #define NUM_ANALOG_FIRST 108
  154. // Timer Definitions
  155. //Do not use timer used by PWM pins when possible. See PinMap_PWM in PeripheralPins.c
  156. #define TIMER_TONE TIM2
  157. #define TIMER_SERVO TIM5
  158. #define TIMER_SERIAL TIM7
  159. // UART1 for TFT port
  160. #define ENABLE_HWSERIAL1
  161. #define PIN_SERIAL1_RX PA10
  162. #define PIN_SERIAL1_TX PA9
  163. // UART4 for ESP-01 port
  164. #define ENABLE_HWSERIAL4
  165. #define PIN_SERIAL4_RX PA1
  166. #define PIN_SERIAL4_TX PA0
  167. // IIC1 for onboard 24C32 EEPROM
  168. #define PIN_WIRE_SDA PB9
  169. #define PIN_WIRE_SCL PB8
  170. // SPI3 for onboard SD card
  171. // #define PIN_SPI_MOSI PC12
  172. // #define PIN_SPI_MISO PC11
  173. // #define PIN_SPI_SCK PC10
  174. // HSE default value is 25MHz in HAL
  175. // HSE_BYPASS is 25MHz
  176. #ifndef HSE_BYPASS_NOT_USED
  177. #define HSE_VALUE 25000000
  178. #endif
  179. // #define USE_USB_FS
  180. /* Extra HAL modules */
  181. //#define HAL_HCD_MODULE_ENABLED
  182. //#define HAL_DAC_MODULE_ENABLED
  183. //#define HAL_ETH_MODULE_ENABLED
  184. #ifdef __cplusplus
  185. } // extern "C"
  186. #endif
  187. /*----------------------------------------------------------------------------
  188. * Arduino objects - C++ only
  189. *----------------------------------------------------------------------------*/
  190. #ifdef __cplusplus
  191. // These serial port names are intended to allow libraries and architecture-neutral
  192. // sketches to automatically default to the correct port name for a particular type
  193. // of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
  194. // the first hardware serial port whose RX/TX pins are not dedicated to another use.
  195. //
  196. // SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
  197. //
  198. // SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
  199. //
  200. // SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
  201. //
  202. // SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
  203. //
  204. // SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
  205. // pins are NOT connected to anything by default.
  206. #define SERIAL_PORT_MONITOR Serial
  207. #define SERIAL_PORT_HARDWARE Serial
  208. #endif
  209. #endif /* _VARIANT_ARDUINO_STM32_ */