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

Conditionals_adv.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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. * Conditionals_adv.h
  25. * Defines that depend on advanced configuration.
  26. */
  27. #define HAS_CUTTER EITHER(SPINDLE_FEATURE, LASER_FEATURE)
  28. #if !defined(__AVR__) || !defined(USBCON)
  29. // Define constants and variables for buffering serial data.
  30. // Use only 0 or powers of 2 greater than 1
  31. // : [0, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...]
  32. #ifndef RX_BUFFER_SIZE
  33. #define RX_BUFFER_SIZE 128
  34. #endif
  35. // 256 is the max TX buffer limit due to uint8_t head and tail
  36. // : [0, 4, 8, 16, 32, 64, 128, 256]
  37. #ifndef TX_BUFFER_SIZE
  38. #define TX_BUFFER_SIZE 32
  39. #endif
  40. #else
  41. // SERIAL_XON_XOFF not supported on USB-native devices
  42. #undef SERIAL_XON_XOFF
  43. #endif
  44. #if ENABLED(HOST_ACTION_COMMANDS)
  45. #ifndef ACTION_ON_PAUSE
  46. #define ACTION_ON_PAUSE "pause"
  47. #endif
  48. #ifndef ACTION_ON_PAUSED
  49. #define ACTION_ON_PAUSED "paused"
  50. #endif
  51. #ifndef ACTION_ON_RESUME
  52. #define ACTION_ON_RESUME "resume"
  53. #endif
  54. #ifndef ACTION_ON_RESUMED
  55. #define ACTION_ON_RESUMED "resumed"
  56. #endif
  57. #ifndef ACTION_ON_CANCEL
  58. #define ACTION_ON_CANCEL "cancel"
  59. #endif
  60. #ifndef ACTION_ON_KILL
  61. #define ACTION_ON_KILL "poweroff"
  62. #endif
  63. #if HAS_FILAMENT_SENSOR
  64. #ifndef ACTION_ON_FILAMENT_RUNOUT
  65. #define ACTION_ON_FILAMENT_RUNOUT "filament_runout"
  66. #endif
  67. #ifndef ACTION_REASON_ON_FILAMENT_RUNOUT
  68. #define ACTION_REASON_ON_FILAMENT_RUNOUT "filament_runout"
  69. #endif
  70. #endif
  71. #if ENABLED(G29_RETRY_AND_RECOVER)
  72. #ifndef ACTION_ON_G29_RECOVER
  73. #define ACTION_ON_G29_RECOVER "probe_rewipe"
  74. #endif
  75. #ifndef ACTION_ON_G29_FAILURE
  76. #define ACTION_ON_G29_FAILURE "probe_failed"
  77. #endif
  78. #endif
  79. #endif
  80. #if ENABLED(FYSETC_MINI_12864_2_1)
  81. #define LED_CONTROL_MENU
  82. #define LED_USER_PRESET_STARTUP
  83. #define LED_COLOR_PRESETS
  84. #ifndef LED_USER_PRESET_RED
  85. #define LED_USER_PRESET_RED 255
  86. #endif
  87. #ifndef LED_USER_PRESET_GREEN
  88. #define LED_USER_PRESET_GREEN 128
  89. #endif
  90. #ifndef LED_USER_PRESET_BLUE
  91. #define LED_USER_PRESET_BLUE 0
  92. #endif
  93. #ifndef LED_USER_PRESET_BRIGHTNESS
  94. #define LED_USER_PRESET_BRIGHTNESS 255
  95. #endif
  96. #endif