My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

platforms.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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(ARDUINO_ARCH_STM32)
  39. #ifndef HAL_STM32
  40. #define HAL_STM32
  41. #endif
  42. #define HAL_PATH(PATH, NAME) XSTR(PATH/STM32/NAME)
  43. #elif defined(ARDUINO_ARCH_ESP32)
  44. #define HAL_PATH(PATH, NAME) XSTR(PATH/ESP32/NAME)
  45. #elif defined(__PLAT_LINUX__)
  46. #define HAL_PATH(PATH, NAME) XSTR(PATH/LINUX/NAME)
  47. #elif defined(__PLAT_NATIVE_SIM__)
  48. #define HAL_PATH(PATH, NAME) XSTR(PATH/NATIVE_SIM/NAME)
  49. #elif defined(__SAMD51__)
  50. #define HAL_PATH(PATH, NAME) XSTR(PATH/SAMD51/NAME)
  51. #else
  52. #error "Unsupported Platform!"
  53. #endif