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.

Conditionals_adv.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. #if !defined(__AVR__) || !defined(USBCON)
  28. // Define constants and variables for buffering serial data.
  29. // Use only 0 or powers of 2 greater than 1
  30. // : [0, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...]
  31. #ifndef RX_BUFFER_SIZE
  32. #define RX_BUFFER_SIZE 128
  33. #endif
  34. // 256 is the max TX buffer limit due to uint8_t head and tail
  35. // : [0, 4, 8, 16, 32, 64, 128, 256]
  36. #ifndef TX_BUFFER_SIZE
  37. #define TX_BUFFER_SIZE 32
  38. #endif
  39. #else
  40. // SERIAL_XON_XOFF not supported on USB-native devices
  41. #undef SERIAL_XON_XOFF
  42. #endif
  43. #if ENABLED(HOST_ACTION_COMMANDS)
  44. #ifndef ACTION_ON_PAUSE
  45. #define ACTION_ON_PAUSE "pause"
  46. #endif
  47. #ifndef ACTION_ON_PAUSED
  48. #define ACTION_ON_PAUSED "paused"
  49. #endif
  50. #ifndef ACTION_ON_RESUME
  51. #define ACTION_ON_RESUME "resume"
  52. #endif
  53. #ifndef ACTION_ON_RESUMED
  54. #define ACTION_ON_RESUMED "resumed"
  55. #endif
  56. #ifndef ACTION_ON_CANCEL
  57. #define ACTION_ON_CANCEL "cancel"
  58. #endif
  59. #ifndef ACTION_ON_KILL
  60. #define ACTION_ON_KILL "poweroff"
  61. #endif
  62. #if HAS_FILAMENT_SENSOR
  63. #ifndef ACTION_ON_FILAMENT_RUNOUT
  64. #define ACTION_ON_FILAMENT_RUNOUT "filament_runout"
  65. #endif
  66. #ifndef ACTION_REASON_ON_FILAMENT_RUNOUT
  67. #define ACTION_REASON_ON_FILAMENT_RUNOUT "filament_runout"
  68. #endif
  69. #endif
  70. #if ENABLED(G29_RETRY_AND_RECOVER)
  71. #ifndef ACTION_ON_G29_RECOVER
  72. #define ACTION_ON_G29_RECOVER "probe_rewipe"
  73. #endif
  74. #ifndef ACTION_ON_G29_FAILURE
  75. #define ACTION_ON_G29_FAILURE "probe_failed"
  76. #endif
  77. #endif
  78. #endif