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.

HAL.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* **************************************************************************
  2. Marlin 3D Printer Firmware
  3. Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. ****************************************************************************/
  16. /**
  17. * Description: HAL wrapper
  18. *
  19. * Supports platforms :
  20. * ARDUINO_ARCH_SAM : For Arduino Due and other boards based on Atmel SAM3X8E
  21. * __AVR__ : For all Atmel AVR boards
  22. */
  23. #ifndef _HAL_H
  24. #define _HAL_H
  25. #include "SPI.h"
  26. #define CPU_32_BIT
  27. #ifdef __AVR__
  28. #undef CPU_32_BIT
  29. #include "HAL_AVR/HAL_AVR.h"
  30. #elif defined(ARDUINO_ARCH_SAM)
  31. #include "HAL_DUE/HAL_Due.h"
  32. #include "math_32bit.h"
  33. #elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
  34. #include "HAL_TEENSY35_36/HAL_Teensy.h"
  35. #include "math_32bit.h"
  36. #elif defined(TARGET_LPC1768)
  37. #include "math_32bit.h"
  38. #include "HAL_LPC1768/HAL.h"
  39. #elif defined(__STM32F1__) || defined(TARGET_STM32F1)
  40. #include "math_32bit.h"
  41. #include "HAL_STM32F1/HAL_Stm32f1.h"
  42. #elif defined(STM32F7)
  43. #define CPU_32_BIT
  44. #include "math_32bit.h"
  45. #include "HAL_STM32F7/HAL_STM32F7.h"
  46. #else
  47. #error "Unsupported Platform!"
  48. #endif
  49. #endif // _HAL_H