2017-06-18 01:36:10 +02:00
|
|
|
/* **************************************************************************
|
|
|
|
|
|
|
|
Marlin 3D Printer Firmware
|
|
|
|
Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
|
Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Description: HAL wrapper
|
|
|
|
*
|
|
|
|
* Supports platforms :
|
|
|
|
* ARDUINO_ARCH_SAM : For Arduino Due and other boards based on Atmel SAM3X8E
|
2017-09-24 06:25:28 +02:00
|
|
|
* __AVR__ : For all Atmel AVR boards
|
2017-06-18 01:36:10 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _HAL_H
|
|
|
|
#define _HAL_H
|
|
|
|
|
2017-10-19 07:42:16 +02:00
|
|
|
#include "SPI.h"
|
2017-06-18 01:36:10 +02:00
|
|
|
|
2017-11-19 21:00:41 +01:00
|
|
|
#define CPU_32_BIT
|
|
|
|
|
2017-09-24 06:25:28 +02:00
|
|
|
#ifdef __AVR__
|
2017-11-19 21:00:41 +01:00
|
|
|
#undef CPU_32_BIT
|
2017-06-18 01:36:10 +02:00
|
|
|
#include "HAL_AVR/HAL_AVR.h"
|
|
|
|
#elif defined(ARDUINO_ARCH_SAM)
|
|
|
|
#include "HAL_DUE/HAL_Due.h"
|
|
|
|
#include "math_32bit.h"
|
|
|
|
#elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
|
|
|
#include "HAL_TEENSY35_36/HAL_Teensy.h"
|
|
|
|
#include "math_32bit.h"
|
2017-06-17 23:19:42 +02:00
|
|
|
#elif defined(TARGET_LPC1768)
|
|
|
|
#include "math_32bit.h"
|
|
|
|
#include "HAL_LPC1768/HAL.h"
|
2017-11-07 06:03:59 +01:00
|
|
|
#elif defined(__STM32F1__) || defined(TARGET_STM32F1)
|
2017-09-27 07:30:23 +02:00
|
|
|
#include "math_32bit.h"
|
|
|
|
#include "HAL_STM32F1/HAL_Stm32f1.h"
|
2017-06-18 01:36:10 +02:00
|
|
|
#else
|
2017-09-06 13:28:32 +02:00
|
|
|
#error "Unsupported Platform!"
|
2017-06-18 01:36:10 +02:00
|
|
|
#endif
|
|
|
|
|
2017-09-06 13:28:32 +02:00
|
|
|
#endif // _HAL_H
|