1 | extern void delay (unsigned int us); |
2 | |
3 | #ifndef cbi
|
4 | #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
|
5 | #endif
|
6 | #ifndef sbi
|
7 | #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
|
8 | #endif
|
9 | |
10 | |
11 | typedef union conver_ { |
12 | unsigned long dw; |
13 | unsigned int w[2]; |
14 | unsigned char b[4]; |
15 | } CONVERTDW; |
16 | |
17 | typedef union conver2_ { |
18 | unsigned int w; |
19 | unsigned char b[2]; |
20 | } CONVERTW; |