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 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. /**
  23. * Conditionals_adv.h
  24. * Defines that depend on advanced configuration.
  25. */
  26. #ifndef CONDITIONALS_ADV_H
  27. #define CONDITIONALS_ADV_H
  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. #endif // CONDITIONALS_ADV_H