source: rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/Arduino.h@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 2.2 KB
Line 
1/*
2 Arduino.h - Main include file for the Arduino SDK
3 Copyright (c) 2005-2013 Arduino Team. All right reserved.
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20#ifndef Arduino_h
21#define Arduino_h
22
23#include <stdint.h>
24#include <stdlib.h>
25#include <string.h>
26#include <math.h>
27
28// some libraries and sketches depend on this AVR stuff,
29// assuming Arduino.h or WProgram.h automatically includes it...
30//
31#include "avr/pgmspace.h"
32#include "avr/interrupt.h"
33
34#include "binary.h"
35#include "itoa.h"
36
37#ifdef __cplusplus
38extern "C"{
39#endif // __cplusplus
40
41// Include Atmel headers
42#include "sam.h"
43
44#include "wiring_constants.h"
45
46#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
47#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SystemCoreClock / 1000L) )
48#define microsecondsToClockCycles(a) ( (a) * (SystemCoreClock / 1000000L) )
49
50void yield( void ) ;
51
52/* sketch */
53void setup( void ) ;
54void loop( void ) ;
55
56#include "WVariant.h"
57
58#ifdef __cplusplus
59} // extern "C"
60#endif // __cplusplus
61
62// The following headers are for C++ only compilation
63#ifdef __cplusplus
64 #include "WCharacter.h"
65 #include "WString.h"
66 #include "Tone.h"
67 #include "WMath.h"
68 #include "HardwareSerial.h"
69 #include "wiring_pulse.h"
70 #include "delay.h"
71 #include "Uart.h"
72#endif // __cplusplus
73
74// Include board variant
75#include "variant.h"
76
77#include "wiring.h"
78#include "wiring_digital.h"
79#include "wiring_analog.h"
80#include "wiring_shift.h"
81#include "WInterrupts.h"
82
83// USB Device
84#include "USB/USBDesc.h"
85#include "USB/USBCore.h"
86#include "USB/USBAPI.h"
87
88#endif // Arduino_h
Note: See TracBrowser for help on using the repository browser.