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.

SanityCheck.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * Marlin 3D Printer Firmware
  3. *
  4. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  5. * SAMD51 HAL developed by Giuliano Zaro (AKA GMagician)
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. */
  21. /**
  22. * Test SAMD51 specific configuration values for errors at compile-time.
  23. */
  24. #if ENABLED(FLASH_EEPROM_EMULATION)
  25. #warning "Did you activate the SmartEEPROM? See https://github.com/GMagician/SAMD51-SmartEEprom-Manager/releases"
  26. #endif
  27. #if defined(ADAFRUIT_GRAND_CENTRAL_M4) && SD_CONNECTION_IS(CUSTOM_CABLE)
  28. #error "No custom SD drive cable defined for this board."
  29. #endif
  30. #if (defined(TEMP_0_SCK_PIN) && defined(TEMP_0_MISO_PIN) && (TEMP_0_SCK_PIN == SCK1 || TEMP_0_MISO_PIN == MISO1)) || \
  31. (defined(TEMP_1_SCK_PIN) && defined(TEMP_1_MISO_PIN) && (TEMP_1_SCK_PIN == SCK1 || TEMP_1_MISO_PIN == MISO1))
  32. #error "OnBoard SPI BUS can't be shared with other devices."
  33. #endif
  34. #if SERVO_TC == RTC_TIMER_NUM
  35. #error "Servos can't use RTC timer"
  36. #endif
  37. #if ENABLED(EMERGENCY_PARSER)
  38. #error "EMERGENCY_PARSER is not yet implemented for SAMD51. Disable EMERGENCY_PARSER to continue."
  39. #endif
  40. #if ENABLED(SDIO_SUPPORT)
  41. #error "SDIO_SUPPORT is not supported on SAMD51."
  42. #endif
  43. #if ENABLED(FAST_PWM_FAN) || SPINDLE_LASER_FREQUENCY
  44. #error "Features requiring Hardware PWM (FAST_PWM_FAN, SPINDLE_LASER_FREQUENCY) are not yet supported on SAMD51."
  45. #endif
  46. #if ENABLED(POSTMORTEM_DEBUGGING)
  47. #error "POSTMORTEM_DEBUGGING is not yet supported on AGCM4."
  48. #endif