/* Arduino.h - Main include file for the Arduino SDK Copyright (c) 2005-2013 Arduino Team. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _ARDUINO_CORE_H_ #define _ARDUINO_CORE_H_ #include #define __STRICT_ANSI__ #include #undef __STRICT_ANSI__ #include #include // Some libraries and sketches depend on this // AVR stuff, assuming Arduino.h automatically includes it... #include "avr_compat/core_pgmspace.h" #include "avr_compat/core_interrupt.h" #include "arch_common/core_binary.h" //#include "core_itoa.h" // Include board variant #include "variant.h" // includes "core_variant.h" #define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L ) #define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SystemCoreClock / 1000L) ) #define microsecondsToClockCycles(a) ( (a) * (SystemCoreClock / 1000000L) ) extern void yield(void); /* sketch */ extern void setup( void ) ; extern void loop( void ) ; #ifdef __cplusplus #include "arch_arm/CoreString.hpp" #include "arch_arm/CoreHardwareSerial.hpp" #include "port_sam/core_tone.hpp" #include "port_sam/core_pulse.hpp" #include "arch_arm/core_math.hpp" #endif // __cplusplus #include "arch_arm/core_init.h" #include "port_sam/core_delay.h" #include "port_sam/core_digital.h" #include "port_sam/core_analog.h" #include "arch_arm/core_shift.h" #include "port_sam/core_interrupts.h" #include "arch_common/core_watchdog.h" #include "arch_arm/core_cortex_vectors.h" // USB Device /* #include "USB/USBDesc.h" #include "USB/USBCore.h" #include "USB/USBAPI.h" */ #endif // _ARDUINO_CORE_H_