JM9 XRCU Board
0.1.3a
Libraries API Reference
Loading...
Searching...
No Matches
wiring.h
1
/*
2
Copyright (c) 2011 Arduino. All right reserved.
3
Copyright (c) 2013 by Paul Stoffregen <paul@pjrc.com> (delayMicroseconds)
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.
13
See the GNU 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 _WIRING_H_
21
#define _WIRING_H_
22
23
#include <stdint.h>
24
#include <stdlib.h>
25
#include <stdbool.h>
26
#include <string.h>
27
#include <math.h>
28
29
#include "avr/dtostrf.h"
30
#include "binary.h"
31
#include "itoa.h"
32
33
#include "wiring_analog.h"
34
#include "wiring_constants.h"
35
#include "wiring_digital.h"
36
#include "wiring_pulse.h"
37
#include "wiring_shift.h"
38
#include "wiring_time.h"
39
40
#include <board.h>
41
42
#ifdef __cplusplus
43
#include "HardwareTimer.h"
44
#include "Tone.h"
45
#include "WCharacter.h"
46
#include "WInterrupts.h"
47
#include "WMath.h"
48
#include "WSerial.h"
49
#include "WString.h"
50
#endif
// __cplusplus
51
52
53
#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )
54
#define clockCyclesToMicroseconds(a) ( ((a) * 1000L) / (SystemCoreClock / 1000L) )
55
#define microsecondsToClockCycles(a) ( (a) * (SystemCoreClock / 1000000L) )
56
57
#endif
/* _WIRING_H_ */
cores
arduino
wiring.h
Generated by
1.13.2