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

« back to all changes in this revision

Viewing changes to include/avr/iom645.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: iom645.h,v 1.11.2.2 2008/01/06 20:10:45 arcanum Exp $ */
 
31
/* $Id: iom645.h,v 1.11.2.6 2009/02/11 18:05:30 arcanum Exp $ */
32
32
 
33
33
/* avr/iom645.h - definitions for ATmega645 */
34
34
 
760
760
 
761
761
 
762
762
/* Constants */
763
 
#define SPM_PAGESIZE    256
764
 
#define RAMEND          0x10FF
765
 
#define XRAMEND         0x10FF
766
 
#define E2END           0x7FF
767
 
#define FLASHEND        0xFFFF
 
763
#define SPM_PAGESIZE 256
 
764
#define RAMEND       0x10FF
 
765
#define XRAMEND      RAMEND
 
766
#define E2END        0x7FF
 
767
#define E2PAGESIZE   8
 
768
#define FLASHEND     0xFFFF
768
769
 
769
770
 
770
771
/* Fuses */
772
773
#define FUSE_MEMORY_SIZE 3
773
774
 
774
775
/* Low Fuse Byte */
775
 
#define FUSE_CKSEL0      ~_BV(0)
776
 
#define FUSE_CKSEL1      ~_BV(1)
777
 
#define FUSE_CKSEL2      ~_BV(2)
778
 
#define FUSE_CKSEL3      ~_BV(3)
779
 
#define FUSE_SUT0        ~_BV(4)
780
 
#define FUSE_SUT1        ~_BV(5)
781
 
#define FUSE_CKOUT       ~_BV(6)
782
 
#define FUSE_CKDIV8      ~_BV(7)
 
776
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
777
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
778
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
779
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
780
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
781
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
782
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
783
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
783
784
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
784
785
 
785
786
/* High Fuse Byte */
786
 
#define FUSE_BOOTRST     ~_BV(0)
787
 
#define FUSE_BOOTSZ0     ~_BV(1)
788
 
#define FUSE_BOOTSZ1     ~_BV(2)
789
 
#define FUSE_EESAVE      ~_BV(3)
790
 
#define FUSE_WDTON       ~_BV(4)
791
 
#define FUSE_SPIEN       ~_BV(5)
792
 
#define FUSE_JTAGEN      ~_BV(6)
793
 
#define FUSE_OCDEN       ~_BV(7)
 
787
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
788
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
789
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
790
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
791
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
792
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
793
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
794
#define FUSE_OCDEN       (unsigned char)~_BV(7)
794
795
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
795
796
 
796
797
/* Extended Fuse Byte */
797
 
#define FUSE_RSTDISBL    ~_BV(0)
798
 
#define FUSE_BODLEVEL0   ~_BV(1)
799
 
#define FUSE_BODLEVEL1   ~_BV(2)
 
798
#define FUSE_RSTDISBL    (unsigned char)~_BV(0)
 
799
#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
 
800
#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
800
801
#define EFUSE_DEFAULT (0xFF)
801
802
 
802
803
 
806
807
#define __BOOT_LOCK_BITS_1_EXIST 
807
808
 
808
809
 
 
810
/* Signature */
 
811
#define SIGNATURE_0 0x1E
 
812
#define SIGNATURE_1 0x96
 
813
#define SIGNATURE_2 0x05
 
814
 
 
815
 
809
816
#endif /* _AVR_IOM645_H_ */