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

« back to all changes in this revision

Viewing changes to include/avr/iom64.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: iom64.h,v 1.14.2.2 2008/01/06 20:10:45 arcanum Exp $ */
 
31
/* $Id: iom64.h,v 1.14.2.5 2008/10/17 23:27:49 arcanum Exp $ */
32
32
 
33
33
/* avr/iom64.h - defines for ATmega64 
34
34
 
1172
1172
#define    EERE         0
1173
1173
 
1174
1174
/* Constants */
1175
 
#define    SPM_PAGESIZE 256
1176
 
#define    RAMEND   0x10FF     /* Last On-Chip SRAM Location */
1177
 
#define    XRAMEND  0xFFFF
1178
 
#define    E2END    0x07FF
1179
 
#define    FLASHEND 0xFFFF
 
1175
#define SPM_PAGESIZE 256
 
1176
#define RAMEND     0x10FF     /* Last On-Chip SRAM Location */
 
1177
#define XRAMEND    0xFFFF
 
1178
#define E2END      0x07FF
 
1179
#define E2PAGESIZE 8
 
1180
#define FLASHEND   0xFFFF
1180
1181
 
1181
1182
 
1182
1183
/* Fuses */
1184
1185
#define FUSE_MEMORY_SIZE 3
1185
1186
 
1186
1187
/* Low Fuse Byte */
1187
 
#define FUSE_CKSEL0      ~_BV(0)
1188
 
#define FUSE_CKSEL1      ~_BV(1)
1189
 
#define FUSE_CKSEL2      ~_BV(2)
1190
 
#define FUSE_CKSEL3      ~_BV(3)
1191
 
#define FUSE_SUT0        ~_BV(4)
1192
 
#define FUSE_SUT1        ~_BV(5)
1193
 
#define FUSE_BODEN       ~_BV(6)
1194
 
#define FUSE_BODLEVEL    ~_BV(7)
 
1188
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
1189
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
1190
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
1191
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
1192
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
1193
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
1194
#define FUSE_BODEN       (unsigned char)~_BV(6)
 
1195
#define FUSE_BODLEVEL    (unsigned char)~_BV(7)
1195
1196
#define LFUSE_DEFAULT (FUSE_CKSEL1 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0)
1196
1197
 
1197
1198
/* High Fuse Byte */
1198
 
#define FUSE_BOOTRST     ~_BV(0)
1199
 
#define FUSE_BOOTSZ0     ~_BV(1)
1200
 
#define FUSE_BOOTSZ1     ~_BV(2)
1201
 
#define FUSE_EESAVE      ~_BV(3)
1202
 
#define FUSE_CKOPT       ~_BV(4)
1203
 
#define FUSE_SPIEN       ~_BV(5)
1204
 
#define FUSE_JTAGEN      ~_BV(6)
1205
 
#define FUSE_OCDEN       ~_BV(7)
 
1199
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
1200
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
1201
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
1202
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
1203
#define FUSE_CKOPT       (unsigned char)~_BV(4)
 
1204
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
1205
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
1206
#define FUSE_OCDEN       (unsigned char)~_BV(7)
1206
1207
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
1207
1208
 
1208
1209
/* Extended Fuse Byte */
1209
 
#define FUSE_WDTON       ~_BV(0)
1210
 
#define FUSE_M103C       ~_BV(1)
 
1210
#define FUSE_WDTON       (unsigned char)~_BV(0)
 
1211
#define FUSE_M103C       (unsigned char)~_BV(1)
1211
1212
#define EFUSE_DEFAULT (FUSE_M103C)
1212
1213
 
1213
1214
 
1217
1218
#define __BOOT_LOCK_BITS_1_EXIST 
1218
1219
 
1219
1220
 
 
1221
/* Signature */
 
1222
#define SIGNATURE_0 0x1E
 
1223
#define SIGNATURE_1 0x96
 
1224
#define SIGNATURE_2 0x02
 
1225
 
 
1226
 
1220
1227
#endif /* _AVR_IOM64_H_ */