2018-11-04 02:25:55 -06:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-11-04 02:25:55 -06:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-11-04 02:25:55 -06:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
2018-04-12 20:25:08 -05:00
|
|
|
|
|
|
|
#ifdef __AVR__
|
|
|
|
#define HAL_PLATFORM HAL_AVR
|
|
|
|
#elif defined(ARDUINO_ARCH_SAM)
|
|
|
|
#define HAL_PLATFORM HAL_DUE
|
2018-08-27 21:49:49 -05:00
|
|
|
#elif defined(__MK20DX256__)
|
|
|
|
#define HAL_PLATFORM HAL_TEENSY31_32
|
2018-04-12 20:25:08 -05:00
|
|
|
#elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
|
|
|
#define HAL_PLATFORM HAL_TEENSY35_36
|
|
|
|
#elif defined(TARGET_LPC1768)
|
|
|
|
#define HAL_PLATFORM HAL_LPC1768
|
|
|
|
#elif defined(__STM32F1__) || defined(TARGET_STM32F1)
|
|
|
|
#define HAL_PLATFORM HAL_STM32F1
|
2019-07-09 23:54:34 -05:00
|
|
|
#elif defined(STM32GENERIC) && (defined(STM32F4) || defined(STM32F7))
|
|
|
|
#define HAL_PLATFORM HAL_STM32_F4_F7
|
2018-10-03 03:26:07 -05:00
|
|
|
#elif defined(ARDUINO_ARCH_STM32)
|
|
|
|
#define HAL_PLATFORM HAL_STM32
|
2017-10-08 11:38:10 -05:00
|
|
|
#elif defined(ARDUINO_ARCH_ESP32)
|
|
|
|
#define HAL_PLATFORM HAL_ESP32
|
2019-02-22 19:09:10 -06:00
|
|
|
#elif defined(__PLAT_LINUX__)
|
|
|
|
#define HAL_PLATFORM HAL_LINUX
|
2019-07-28 14:48:29 -05:00
|
|
|
#elif defined(__SAMD51__)
|
|
|
|
#define HAL_PLATFORM HAL_SAMD51
|
2018-04-12 20:25:08 -05:00
|
|
|
#else
|
|
|
|
#error "Unsupported Platform!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define XSTR_(M) #M
|
|
|
|
#define XSTR(M) XSTR_(M)
|
|
|
|
#define HAL_PATH(PATH, NAME) XSTR(PATH/HAL_PLATFORM/NAME)
|
2019-07-08 23:42:29 -05:00
|
|
|
|
|
|
|
#include HAL_PATH(.,HAL.h)
|