Subversion Repositories MK3Mag

Rev

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

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