46b2773e13
* fixed some include paths * LPC1768: Fix Serial API Add missing serial methods used if TX_BUFFER_SIZE is set Change return value of HalSerial:read to match Arduino API * LPC1768: add filters to ADC This is to try and compensate for hardware issue and oversensitivity to noise * LPC1768: remove the polling section of delayMicroseconds * LPC1768: lock usb mass storage device while device accesses it. Currently only applicable to persistent store, The device always has priority and will unmount the sd card from the host, Windows then tries to automount again so it can look like the explorer window freezes. Linux Mint, by default, just closes the Nemo window. * Add timeout to make sure if Serial never connects that Marlin still boots * Remove unneeded ifdef CPU_32_BIT In general the need for ifdef CPU_32_BIT blocks means that something is missing from the HAL API or a Platform, in this case HAL_TICKS_PER_US was missing from the AVR Platform * LPC1768: relocate RE-ARM debug_extra_script.py
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/* **************************************************************************
|
|
|
|
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
|
|
* __AVR__ : For all Atmel AVR boards
|
|
*/
|
|
|
|
#ifndef _HAL_H
|
|
#define _HAL_H
|
|
|
|
#include "../inc/SPI.h"
|
|
|
|
#ifdef __AVR__
|
|
#include "HAL_AVR/HAL_AVR.h"
|
|
#elif defined(ARDUINO_ARCH_SAM)
|
|
#define CPU_32_BIT
|
|
#include "HAL_DUE/HAL_Due.h"
|
|
#include "math_32bit.h"
|
|
#elif defined(__MK64FX512__) || defined(__MK66FX1M0__)
|
|
#define CPU_32_BIT
|
|
#include "HAL_TEENSY35_36/HAL_Teensy.h"
|
|
#include "math_32bit.h"
|
|
#elif defined(TARGET_LPC1768)
|
|
#define CPU_32_BIT
|
|
#include "math_32bit.h"
|
|
#include "HAL_LPC1768/HAL.h"
|
|
#elif defined(__STM32F1__)
|
|
#define CPU_32_BIT
|
|
#include "math_32bit.h"
|
|
#include "HAL_STM32F1/HAL_Stm32f1.h"
|
|
#else
|
|
#error "Unsupported Platform!"
|
|
#endif
|
|
|
|
#endif // _HAL_H
|