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.

spi_pins.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Marlin 3D Printer Firmware
  3. *
  4. * Copyright (C) 2019 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 <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. #pragma once
  22. #ifdef ADAFRUIT_GRAND_CENTRAL_M4
  23. /*
  24. * AGCM4 Default SPI Pins
  25. *
  26. * SS SCK MISO MOSI
  27. * +-------------------------+
  28. * SPI | 53 52 50 51 |
  29. * SPI1 | 83 81 80 82 |
  30. * +-------------------------+
  31. * Any pin can be used for Chip Select (SS_PIN)
  32. */
  33. #ifndef SCK_PIN
  34. #define SCK_PIN 52
  35. #endif
  36. #ifndef MISO_PIN
  37. #define MISO_PIN 50
  38. #endif
  39. #ifndef MOSI_PIN
  40. #define MOSI_PIN 51
  41. #endif
  42. #ifndef SDSS
  43. #define SDSS 53
  44. #endif
  45. #else
  46. #error "Unsupported board!"
  47. #endif
  48. #define SS_PIN SDSS