Prusa MINI Firmware overview
wiring.h
Go to the documentation of this file.
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 //#include "WInterrupts.h"
40 
41 //#include <board.h>
42 
43 #ifdef __cplusplus
44  //#include "Tone.h"
45  //#include "WCharacter.h"
46  #include "WSerial.h"
47  #include "WMath.h"
48  #include "WString.h"
49 #endif // __cplusplus
50 
51 #define clockCyclesPerMicrosecond() (SystemCoreClock / 1000000L)
52 #define clockCyclesToMicroseconds(a) (((a)*1000L) / (SystemCoreClock / 1000L))
53 #define microsecondsToClockCycles(a) ((a) * (SystemCoreClock / 1000000L))
54 
55 #endif /* _WIRING_H_ */
wiring_digital.h
WMath.h
wiring_constants.h
math.h
itoa.h
wiring_analog.h
wiring_time.h
binary.h
WString.h
WSerial.h