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

« back to all changes in this revision

Viewing changes to include/avr/iom649.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:
936
936
 
937
937
 
938
938
/* Constants */
939
 
#define SPM_PAGESIZE    256
940
 
#define RAMEND          0x10FF
941
 
#define XRAMEND         0x10FF
942
 
#define E2END           0x7FF
943
 
#define FLASHEND        0xFFFF
 
939
#define SPM_PAGESIZE 256
 
940
#define RAMEND       0x10FF
 
941
#define XRAMEND      RAMEND
 
942
#define E2END        0x7FF
 
943
#define E2PAGESIZE   8
 
944
#define FLASHEND     0xFFFF
944
945
 
945
946
 
946
947
/* Fuses */
948
949
#define FUSE_MEMORY_SIZE 3
949
950
 
950
951
/* Low Fuse Byte */
951
 
#define FUSE_CKSEL0      ~_BV(0)
952
 
#define FUSE_CKSEL1      ~_BV(1)
953
 
#define FUSE_CKSEL2      ~_BV(2)
954
 
#define FUSE_CKSEL3      ~_BV(3)
955
 
#define FUSE_SUT0        ~_BV(4)
956
 
#define FUSE_SUT1        ~_BV(5)
957
 
#define FUSE_CKOUT       ~_BV(6)
958
 
#define FUSE_CKDIV8      ~_BV(7)
 
952
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
953
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
954
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
955
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
956
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
957
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
958
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
959
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
959
960
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
960
961
 
961
962
/* High Fuse Byte */
962
 
#define FUSE_BOOTRST     ~_BV(0)
963
 
#define FUSE_BOOTSZ0     ~_BV(1)
964
 
#define FUSE_BOOTSZ1     ~_BV(2)
965
 
#define FUSE_EESAVE      ~_BV(3)
966
 
#define FUSE_WDTON       ~_BV(4)
967
 
#define FUSE_SPIEN       ~_BV(5)
968
 
#define FUSE_JTAGEN      ~_BV(6)
969
 
#define FUSE_OCDEN       ~_BV(7)
 
963
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
964
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
965
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
966
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
967
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
968
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
969
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
970
#define FUSE_OCDEN       (unsigned char)~_BV(7)
970
971
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
971
972
 
972
973
/* Extended Fuse Byte */
973
 
#define FUSE_RSTDISBL    ~_BV(0)
974
 
#define FUSE_BODLEVEL0   ~_BV(1)
975
 
#define FUSE_BODLEVEL1   ~_BV(2)
 
974
#define FUSE_RSTDISBL    (unsigned char)~_BV(0)
 
975
#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
 
976
#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
976
977
#define EFUSE_DEFAULT (0xFF)
977
978
 
978
979
 
982
983
#define __BOOT_LOCK_BITS_1_EXIST 
983
984
 
984
985
 
 
986
/* Signature */
 
987
#define SIGNATURE_0 0x1E
 
988
#define SIGNATURE_1 0x96
 
989
#define SIGNATURE_2 0x03
 
990
 
 
991
 
985
992
#endif /* _AVR_IOM649_H_ */