@@ -66,47 +66,13 @@ extern uint32_t F_CPU_CORRECTED;
66
66
#define _NOP () do { __asm__ volatile ("nop"); } while (0)
67
67
#endif
68
68
69
- typedef unsigned int word ;
70
-
71
- #define bit (b ) (1UL << (b))
72
-
73
- typedef bool boolean ;
74
- typedef uint8_t byte ;
75
69
76
70
extern uint32_t F_CPU_CORRECTED ;
77
71
78
- void init (void );
79
- void initVariant (void );
80
-
81
72
uint16_t clockCyclesPerMicrosecond (uint32_t clk );
82
73
uint16_t clockCyclesToMicroseconds (uint16_t cycles , uint32_t clk );
83
74
uint32_t microsecondsToClockCycles (uint16_t cycles , uint32_t clk );
84
75
85
- int atexit (void (* func )()) __attribute__((weak ));
86
-
87
- void pinMode (uint8_t , uint8_t );
88
- void digitalWrite (uint8_t , uint8_t );
89
- int digitalRead (uint8_t );
90
- int analogRead (uint8_t );
91
- void analogReference (uint8_t mode );
92
- void analogWrite (uint8_t , int );
93
-
94
- unsigned long millis (void );
95
- unsigned long micros (void );
96
- void delay (unsigned long );
97
- void delayMicroseconds (unsigned int us );
98
- unsigned long pulseIn (uint8_t pin , uint8_t state , unsigned long timeout );
99
- unsigned long pulseInLong (uint8_t pin , uint8_t state , unsigned long timeout );
100
-
101
- void shiftOut (uint8_t dataPin , uint8_t clockPin , uint8_t bitOrder , uint8_t val );
102
- uint8_t shiftIn (uint8_t dataPin , uint8_t clockPin , uint8_t bitOrder );
103
-
104
- void attachInterrupt (uint8_t , void (* )(void ), int mode );
105
- void detachInterrupt (uint8_t );
106
-
107
- void setup (void );
108
- void loop (void );
109
-
110
76
// Get the bit location within the hardware port of the given virtual pin.
111
77
// This comes from the pins_*.c file for the active board configuration.
112
78
0 commit comments