~ubuntu-branches/ubuntu/wily/avr-libc/wily-proposed

« back to all changes in this revision

Viewing changes to include/avr/iotn461.h

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091031115210-crjd42sn6ezrj52c
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: iotn461.h,v 1.3.2.2 2008/01/06 20:10:48 arcanum Exp $ */
 
31
/* $Id: iotn461.h,v 1.3.2.6 2009/02/11 18:05:33 arcanum Exp $ */
32
32
 
33
33
/* avr/iotn461.h - definitions for ATtiny461 */
34
34
 
37
37
 
38
38
#include <avr/iotnx61.h>
39
39
 
40
 
#define RAMEND                0x15F
41
 
#define XRAMEND               0x15F
42
 
#define E2END                 0xFF
43
 
#define FLASHEND              0xFFF
44
 
#define SPM_PAGESIZE          64
 
40
/* Constants */
 
41
#define SPM_PAGESIZE 64
 
42
#define RAMEND       0x15F
 
43
#define XRAMEND      RAMEND
 
44
#define E2END        0xFF
 
45
#define E2PAGESIZE   4
 
46
#define FLASHEND     0xFFF
45
47
 
46
48
 
47
49
/* Fuses */
48
 
 
49
50
#define FUSE_MEMORY_SIZE 3
50
51
 
51
52
/* Low Fuse Byte */
52
 
#define FUSE_CKSEL0      ~_BV(0)
53
 
#define FUSE_CKSEL1      ~_BV(1)
54
 
#define FUSE_CKSEL2      ~_BV(2)
55
 
#define FUSE_CKSEL3      ~_BV(3)
56
 
#define FUSE_SUT0        ~_BV(4)
57
 
#define FUSE_SUT1        ~_BV(5)
58
 
#define FUSE_CKOUT       ~_BV(6)
59
 
#define FUSE_CKDIV8      ~_BV(7)
 
53
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
54
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
55
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
56
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
57
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
58
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
59
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
60
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
60
61
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
61
62
 
62
63
/* High Fuse Byte */
63
 
#define FUSE_BODLEVEL0   ~_BV(0)
64
 
#define FUSE_BODLEVEL1   ~_BV(1)
65
 
#define FUSE_BODLEVEL2   ~_BV(2)
66
 
#define FUSE_EESAVE      ~_BV(3)
67
 
#define FUSE_WDTON       ~_BV(4)
68
 
#define FUSE_SPIEN       ~_BV(5)
69
 
#define FUSE_DWEN        ~_BV(6)
70
 
#define FUSE_RSTDISBL    ~_BV(7)
 
64
#define FUSE_BODLEVEL0   (unsigned char)~_BV(0)
 
65
#define FUSE_BODLEVEL1   (unsigned char)~_BV(1)
 
66
#define FUSE_BODLEVEL2   (unsigned char)~_BV(2)
 
67
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
68
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
69
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
70
#define FUSE_DWEN        (unsigned char)~_BV(6)
 
71
#define FUSE_RSTDISBL    (unsigned char)~_BV(7)
71
72
#define HFUSE_DEFAULT (FUSE_SPIEN)
72
73
 
73
74
/* Extended Fuse Byte */
74
 
#define FUSE_SELFPRGEN   ~_BV(0)
 
75
#define FUSE_SELFPRGEN   (unsigned char)~_BV(0)
75
76
#define EFUSE_DEFAULT (0xFF)
76
77
 
77
78
 
79
80
#define __LOCK_BITS_EXIST
80
81
 
81
82
 
 
83
/* Signature */
 
84
#define SIGNATURE_0 0x1E
 
85
#define SIGNATURE_1 0x92
 
86
#define SIGNATURE_2 0x08
 
87
 
 
88
 
82
89
#endif /* _AVR_IOTN461_H_ */