~ubuntu-branches/ubuntu/maverick/avr-libc/maverick

« back to all changes in this revision

Viewing changes to include/avr/iotn261.h

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091031115210-x0mlijnegkce86fk
Tags: 1:1.6.7-1
* New upstream relese (closes: #544030)
* Added lintian overrides (closes: #553265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
  POSSIBILITY OF SUCH DAMAGE. */
30
30
 
31
 
/* $Id: iotn261.h,v 1.3.2.2 2008/01/06 20:10:47 arcanum Exp $ */
 
31
/* $Id: iotn261.h,v 1.3.2.6 2009/02/11 18:05:32 arcanum Exp $ */
32
32
 
33
33
/* avr/iotn261.h - definitions for ATtiny261 */
34
34
 
37
37
 
38
38
#include <avr/iotnx61.h>
39
39
 
40
 
#define RAMEND                0xDF
41
 
#define XRAMEND               0xDF
42
 
#define E2END                 0x7F
43
 
#define FLASHEND              0x7FF
44
 
#define SPM_PAGESIZE          32
 
40
#define SPM_PAGESIZE 32
 
41
#define RAMEND       0xDF
 
42
#define XRAMEND      RAMEND
 
43
#define E2END        0x7F
 
44
#define E2PAGESIZE   4
 
45
#define FLASHEND     0x7FF
45
46
 
46
47
/* Fuses */
47
48
 
48
49
#define FUSE_MEMORY_SIZE 3
49
50
 
50
51
/* Low Fuse Byte */
51
 
#define FUSE_CKSEL0      ~_BV(0)
52
 
#define FUSE_CKSEL1      ~_BV(1)
53
 
#define FUSE_CKSEL2      ~_BV(2)
54
 
#define FUSE_CKSEL3      ~_BV(3)
55
 
#define FUSE_SUT0        ~_BV(4)
56
 
#define FUSE_SUT1        ~_BV(5)
57
 
#define FUSE_CKOUT       ~_BV(6)
58
 
#define FUSE_CKDIV8      ~_BV(7)
 
52
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
53
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
54
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
55
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
56
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
57
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
58
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
59
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
59
60
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
60
61
 
61
62
/* High Fuse Byte */
62
 
#define FUSE_BODLEVEL0   ~_BV(0)
63
 
#define FUSE_BODLEVEL1   ~_BV(1)
64
 
#define FUSE_BODLEVEL2   ~_BV(2)
65
 
#define FUSE_EESAVE      ~_BV(3)
66
 
#define FUSE_WDTON       ~_BV(4)
67
 
#define FUSE_SPIEN       ~_BV(5)
68
 
#define FUSE_DWEN        ~_BV(6)
69
 
#define FUSE_RSTDISBL    ~_BV(7)
 
63
#define FUSE_BODLEVEL0   (unsigned char)~_BV(0)
 
64
#define FUSE_BODLEVEL1   (unsigned char)~_BV(1)
 
65
#define FUSE_BODLEVEL2   (unsigned char)~_BV(2)
 
66
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
67
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
68
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
69
#define FUSE_DWEN        (unsigned char)~_BV(6)
 
70
#define FUSE_RSTDISBL    (unsigned char)~_BV(7)
70
71
#define HFUSE_DEFAULT (FUSE_SPIEN)
71
72
 
72
73
/* Extended Fuse Byte */
73
 
#define FUSE_SELFPRGEN   ~_BV(0)
 
74
#define FUSE_SELFPRGEN   (unsigned char)~_BV(0)
74
75
#define EFUSE_DEFAULT (0xFF)
75
76
 
76
77
 
78
79
#define __LOCK_BITS_EXIST
79
80
 
80
81
 
 
82
/* Signature */
 
83
#define SIGNATURE_0 0x1E
 
84
#define SIGNATURE_1 0x91
 
85
#define SIGNATURE_2 0x0C
 
86
 
 
87
 
81
88
#endif /* _AVR_IOTN261_H_ */