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

« back to all changes in this revision

Viewing changes to include/avr/iom6490.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:
1088
1088
 
1089
1089
 
1090
1090
/* Constants */
1091
 
#define SPM_PAGESIZE    256
1092
 
#define RAMEND          0x10FF
1093
 
#define XRAMEND         0x10FF
1094
 
#define E2END           0x7FF
1095
 
#define FLASHEND        0xFFFF
 
1091
#define SPM_PAGESIZE 256
 
1092
#define RAMEND       0x10FF
 
1093
#define XRAMEND      RAMEND
 
1094
#define E2END        0x7FF
 
1095
#define E2PAGESIZE   8
 
1096
#define FLASHEND     0xFFFF
1096
1097
 
1097
1098
 
1098
1099
/* Fuses */
1100
1101
#define FUSE_MEMORY_SIZE 3
1101
1102
 
1102
1103
/* Low Fuse Byte */
1103
 
#define FUSE_CKSEL0      ~_BV(0)
1104
 
#define FUSE_CKSEL1      ~_BV(1)
1105
 
#define FUSE_CKSEL2      ~_BV(2)
1106
 
#define FUSE_CKSEL3      ~_BV(3)
1107
 
#define FUSE_SUT0        ~_BV(4)
1108
 
#define FUSE_SUT1        ~_BV(5)
1109
 
#define FUSE_CKOUT       ~_BV(6)
1110
 
#define FUSE_CKDIV8      ~_BV(7)
 
1104
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
1105
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
1106
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
1107
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
1108
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
1109
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
1110
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
1111
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
1111
1112
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
1112
1113
 
1113
1114
/* High Fuse Byte */
1114
 
#define FUSE_BOOTRST     ~_BV(0)
1115
 
#define FUSE_BOOTSZ0     ~_BV(1)
1116
 
#define FUSE_BOOTSZ1     ~_BV(2)
1117
 
#define FUSE_EESAVE      ~_BV(3)
1118
 
#define FUSE_WDTON       ~_BV(4)
1119
 
#define FUSE_SPIEN       ~_BV(5)
1120
 
#define FUSE_JTAGEN      ~_BV(6)
1121
 
#define FUSE_OCDEN       ~_BV(7)
 
1115
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
1116
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
1117
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
1118
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
1119
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
1120
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
1121
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
1122
#define FUSE_OCDEN       (unsigned char)~_BV(7)
1122
1123
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
1123
1124
 
1124
1125
/* Extended Fuse Byte */
1125
 
#define FUSE_RSTDISBL    ~_BV(0)
1126
 
#define FUSE_BODLEVEL0   ~_BV(1)
1127
 
#define FUSE_BODLEVEL1   ~_BV(2)
 
1126
#define FUSE_RSTDISBL    (unsigned char)~_BV(0)
 
1127
#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
 
1128
#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
1128
1129
#define EFUSE_DEFAULT (0xFF)
1129
1130
 
1130
1131
 
1134
1135
#define __BOOT_LOCK_BITS_1_EXIST 
1135
1136
 
1136
1137
 
 
1138
/* Signature */
 
1139
#define SIGNATURE_0 0x1E
 
1140
#define SIGNATURE_1 0x96
 
1141
#define SIGNATURE_2 0x04
 
1142
 
 
1143
 
1137
1144
#endif /* _AVR_IOM6490_H_ */