aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Arduino.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/Arduino.h')
-rwxr-xr-xcores/arduino/Arduino.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h
index 713347b..e877970 100755
--- a/cores/arduino/Arduino.h
+++ b/cores/arduino/Arduino.h
@@ -5,13 +5,11 @@
#include <string.h>
#include <math.h>
-#include <avr/interrupt.h>
-
+#include <avr/pgmspace.h>
#include <avr/io.h>
#include <avr/interrupt.h>
-#include <stdlib.h>
+
#include "binary.h"
-#include "pins_arduino.h"
#ifdef __cplusplus
extern "C"{
@@ -141,6 +139,28 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
#define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) )
#define portModeRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_mode_PGM + (P))) )
+#define NOT_A_PIN 0
+#define NOT_A_PORT 0
+
+#define NOT_ON_TIMER 0
+#define TIMER0A 1
+#define TIMER0B 2
+#define TIMER1A 3
+#define TIMER1B 4
+#define TIMER2 5
+#define TIMER2A 6
+#define TIMER2B 7
+
+#define TIMER3A 8
+#define TIMER3B 9
+#define TIMER3C 10
+#define TIMER4A 11
+#define TIMER4B 12
+#define TIMER4C 13
+#define TIMER5A 14
+#define TIMER5B 15
+#define TIMER5C 16
+
#ifdef __cplusplus
} // extern "C"
#endif
@@ -168,4 +188,6 @@ long map(long, long, long, long, long);
#endif
+#include "pins_arduino.h"
+
#endif \ No newline at end of file