My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

spi_pins.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /**
  24. * HAL for stm32duino.com based on Libmaple and compatible (STM32F1)
  25. */
  26. /**
  27. * STM32F1 Default SPI Pins
  28. *
  29. * SS SCK MISO MOSI
  30. * +-----------------------------+
  31. * SPI1 | PA4 PA5 PA6 PA7 |
  32. * SPI2 | PB12 PB13 PB14 PB15 |
  33. * SPI3 | PA15 PB3 PB4 PB5 |
  34. * +-----------------------------+
  35. * Any pin can be used for Chip Select (SD_SS_PIN)
  36. * SPI1 is enabled by default
  37. */
  38. #ifndef SD_SCK_PIN
  39. #define SD_SCK_PIN PA5
  40. #endif
  41. #ifndef SD_MISO_PIN
  42. #define SD_MISO_PIN PA6
  43. #endif
  44. #ifndef SD_MOSI_PIN
  45. #define SD_MOSI_PIN PA7
  46. #endif
  47. #ifndef SD_SS_PIN
  48. #define SD_SS_PIN PA4
  49. #endif
  50. #undef SDSS
  51. #define SDSS SD_SS_PIN
  52. #ifndef SPI_DEVICE
  53. #define SPI_DEVICE 1
  54. #endif