~ubuntu-branches/ubuntu/trusty/avr-libc/trusty

« back to all changes in this revision

Viewing changes to include/avr/iom644.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:
30
30
 
31
31
/* avr/iom644.h - definitions for ATmega644 */
32
32
 
33
 
/* $Id: iom644.h,v 1.2.2.2 2008/01/06 20:10:45 arcanum Exp $ */
 
33
/* $Id: iom644.h,v 1.2.2.6 2009/02/11 18:05:29 arcanum Exp $ */
34
34
 
35
35
#ifndef _AVR_IOM644_H_
36
36
#define _AVR_IOM644_H_ 1
38
38
#include <avr/iomxx4.h>
39
39
 
40
40
/* Constants */
41
 
#define SPM_PAGESIZE    256
42
 
#define RAMEND          0x10FF
43
 
#define XRAMEND         0x10FF
44
 
#define E2END           0x7FF
45
 
#define FLASHEND        0xFFFF
 
41
#define SPM_PAGESIZE 256
 
42
#define RAMEND       0x10FF
 
43
#define XRAMEND      RAMEND
 
44
#define E2END        0x7FF
 
45
#define E2PAGESIZE   8
 
46
#define FLASHEND     0xFFFF
46
47
 
47
48
 
48
49
/* Fuses */
50
51
#define FUSE_MEMORY_SIZE 3
51
52
 
52
53
/* Low Fuse Byte */
53
 
#define FUSE_CKSEL0      ~_BV(0)
54
 
#define FUSE_CKSEL1      ~_BV(1)
55
 
#define FUSE_CKSEL2      ~_BV(2)
56
 
#define FUSE_CKSEL3      ~_BV(3)
57
 
#define FUSE_SUT0        ~_BV(4)
58
 
#define FUSE_SUT1        ~_BV(5)
59
 
#define FUSE_CKOUT       ~_BV(6)
60
 
#define FUSE_CKDIV8      ~_BV(7)
 
54
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
55
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
56
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
57
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
58
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
59
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
60
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
61
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
61
62
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_SUT1 & FUSE_CKDIV8)
62
63
 
63
64
/* High Fuse Byte */
64
 
#define FUSE_BOOTRST     ~_BV(0)
65
 
#define FUSE_BOOTSZ0     ~_BV(1)
66
 
#define FUSE_BOOTSZ1     ~_BV(2)
67
 
#define FUSE_EESAVE      ~_BV(3)
68
 
#define FUSE_WDTON       ~_BV(4)
69
 
#define FUSE_SPIEN       ~_BV(5)
70
 
#define FUSE_JTAGEN      ~_BV(6)
71
 
#define FUSE_OCDEN       ~_BV(7)
 
65
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
66
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
67
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
68
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
69
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
70
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
71
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
72
#define FUSE_OCDEN       (unsigned char)~_BV(7)
72
73
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
73
74
 
74
75
/* Extended Fuse Byte */
75
 
#define FUSE_BODLEVEL0   ~_BV(0)
76
 
#define FUSE_BODLEVEL1   ~_BV(1)
77
 
#define FUSE_BODLEVEL2   ~_BV(2)
 
76
#define FUSE_BODLEVEL0   (unsigned char)~_BV(0)
 
77
#define FUSE_BODLEVEL1   (unsigned char)~_BV(1)
 
78
#define FUSE_BODLEVEL2   (unsigned char)~_BV(2)
78
79
#define EFUSE_DEFAULT (0xFF)
79
80
 
80
81
 
84
85
#define __BOOT_LOCK_BITS_1_EXIST 
85
86
 
86
87
 
 
88
/* Signature */
 
89
#define SIGNATURE_0 0x1E
 
90
#define SIGNATURE_1 0x96
 
91
#define SIGNATURE_2 0x09
 
92
 
 
93
 
87
94
#endif /* _AVR_IOM644_H_ */