Subversion Repositories FlightCtrl

Rev

Rev 2248 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2248 - 1
//----------------------------------------------------------------------------------------------------------------------------------
2
// For backwards compatibility only. 
3
//----------------------------------------------------------------------------------------------------------------------------------
4
 
5
#ifndef cbi
6
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
7
#endif
8
 
9
#ifndef sbi
10
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
11
#endif
12
 
13
#ifndef inb
14
#define inb(sfr) _SFR_BYTE(sfr)
15
#endif
16
 
17
#ifndef outb
18
#define outb(sfr, val) (_SFR_BYTE(sfr) = (val))
19
#endif
20
 
21
#ifndef inw
22
#define inw(sfr) _SFR_WORD(sfr)
23
#endif
24
 
25
#ifndef outw
26
#define outw(sfr, val) (_SFR_WORD(sfr) = (val))
27
#endif
28
 
29
#ifndef outp
30
#define outp(val, sfr) outb(sfr, val)
31
#endif
32
 
33
#ifndef inp
34
#define inp(sfr) inb(sfr)
35
#endif
36
 
37
#ifndef BV
38
#define BV(bit) _BV(bit)
39
#endif
40
 
41
 
42
#ifndef PRG_RDB
43
#define PRG_RDB pgm_read_byte
44
#endif
45
 
46
//----------------------------------------------------------------------------------------------------------------------------------