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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #define XSTR(V...) #V
  24. #ifdef __AVR__
  25. #define HAL_PATH(PATH, NAME) XSTR(PATH/AVR/NAME)
  26. #elif defined(ARDUINO_ARCH_SAM)
  27. #define HAL_PATH(PATH, NAME) XSTR(PATH/DUE/NAME)
  28. #elif defined(__MK20DX256__)
  29. #define HAL_PATH(PATH, NAME) XSTR(PATH/TEENSY31_32/NAME)
  30. #elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
  31. #define HAL_PATH(PATH, NAME) XSTR(PATH/TEENSY35_36/NAME)
  32. #elif defined(__IMXRT1062__)
  33. #define HAL_PATH(PATH, NAME) XSTR(PATH/TEENSY40_41/NAME)
  34. #elif defined(TARGET_LPC1768)
  35. #define HAL_PATH(PATH, NAME) XSTR(PATH/LPC1768/NAME)
  36. #elif defined(__STM32F1__) || defined(TARGET_STM32F1)
  37. #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32F1/NAME)
  38. #elif defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F7))
  39. #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32_F4_F7/NAME)
  40. #elif defined(ARDUINO_ARCH_STM32)
  41. #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32/NAME)
  42. #elif defined(ARDUINO_ARCH_ESP32)
  43. #define HAL_PATH(PATH, NAME) XSTR(PATH/ESP32/NAME)
  44. #elif defined(__PLAT_LINUX__)
  45. #define HAL_PATH(PATH, NAME) XSTR(PATH/LINUX/NAME)
  46. #elif defined(__SAMD51__)
  47. #define HAL_PATH(PATH, NAME) XSTR(PATH/SAMD51/NAME)
  48. #else
  49. #error "Unsupported Platform!"
  50. #endif