00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef WiringPrivate_h
00020 #define WiringPrivate_h
00021
00022 #include <avr/io.h>
00023 #include <avr/interrupt.h>
00024 #include <avr/signal.h>
00025 #include <avr/delay.h>
00026 #include <stdio.h>
00027 #include <stdarg.h>
00028
00029 #include "wiring.h"
00030
00031 #ifdef __cplusplus
00032 extern "C"{
00033 #endif
00034
00035 #ifndef cbi
00036 #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
00037 #endif
00038 #ifndef sbi
00039 #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
00040 #endif
00041
00042 #define EXTERNAL_INT_0 0
00043 #define EXTERNAL_INT_1 1
00044 #define EXTERNAL_INT_2 2
00045 #define EXTERNAL_INT_3 3
00046 #define EXTERNAL_INT_4 4
00047 #define EXTERNAL_INT_5 5
00048 #define EXTERNAL_INT_6 6
00049 #define EXTERNAL_INT_7 7
00050
00051 #define EXTERNAL_NUM_INTERRUPTS 8
00052
00053 typedef void (*voidFuncPtr)(void);
00054
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058
00059 #endif