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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifdef __AVR__
  24. #define HAL_PLATFORM HAL_AVR
  25. #elif defined(ARDUINO_ARCH_SAM)
  26. #define HAL_PLATFORM HAL_DUE
  27. #elif defined(__MK20DX256__)
  28. #define HAL_PLATFORM HAL_TEENSY31_32
  29. #elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
  30. #define HAL_PLATFORM HAL_TEENSY35_36
  31. #elif defined(TARGET_LPC1768)
  32. #define HAL_PLATFORM HAL_LPC1768
  33. #elif defined(__STM32F1__) || defined(TARGET_STM32F1)
  34. #define HAL_PLATFORM HAL_STM32F1
  35. #elif defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F7))
  36. #define HAL_PLATFORM HAL_STM32_F4_F7
  37. #elif defined(ARDUINO_ARCH_STM32)
  38. #define HAL_PLATFORM HAL_STM32
  39. #elif defined(ARDUINO_ARCH_ESP32)
  40. #define HAL_PLATFORM HAL_ESP32
  41. #elif defined(__PLAT_LINUX__)
  42. #define HAL_PLATFORM HAL_LINUX
  43. #elif defined(__SAMD51__)
  44. #define HAL_PLATFORM HAL_SAMD51
  45. #else
  46. #error "Unsupported Platform!"
  47. #endif
  48. #define XSTR_(M) #M
  49. #define XSTR(M) XSTR_(M)
  50. #define HAL_PATH(PATH, NAME) XSTR(PATH/HAL_PLATFORM/NAME)
  51. #include HAL_PATH(.,HAL.h)