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

« back to all changes in this revision

Viewing changes to include/avr/iom165p.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:
29
29
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
30
  POSSIBILITY OF SUCH DAMAGE. */
31
31
 
32
 
/* $Id: iom165p.h,v 1.2.2.2 2008/01/06 20:10:43 arcanum Exp $ */
 
32
/* $Id: iom165p.h,v 1.2.2.7 2009/02/11 18:05:26 arcanum Exp $ */
33
33
 
34
34
/* avr/iom165p.h - definitions for ATmega165P */
35
35
 
701
701
 
702
702
/* Timer/Counter1 Compare Match A */
703
703
#define TIMER1_COMPA_vect               _VECTOR(7)
704
 
#define SIG_OUTPUT_COMPARE1A            _VECTOR(7)
 
704
#define SIG_OUTPUT_COMPARE1A    _VECTOR(7)
705
705
 
706
706
/* Timer/Counter Compare Match B */
707
707
#define TIMER1_COMPB_vect               _VECTOR(8)
708
 
#define SIG_OUTPUT_COMPARE1B            _VECTOR(8)
 
708
#define SIG_OUTPUT_COMPARE1B    _VECTOR(8)
709
709
 
710
710
/* Timer/Counter1 Overflow */
711
711
#define TIMER1_OVF_vect                 _VECTOR(9)
721
721
 
722
722
/* SPI Serial Transfer Complete */
723
723
#define SPI_STC_vect                    _VECTOR(12)
724
 
#define SIG_SPI                         _VECTOR(12)
 
724
#define SIG_SPI                             _VECTOR(12)
725
725
 
726
726
/* USART0, Rx Complete */
727
727
#define USART0_RX_vect                  _VECTOR(13)
 
728
#define USART_RX_vect                   _VECTOR(13)  /* Alias */
728
729
#define SIG_UART_RECV                   _VECTOR(13)
729
730
 
730
731
/* USART0 Data register Empty */
731
732
#define USART0_UDRE_vect                _VECTOR(14)
 
733
#define USART_UDRE_vect             _VECTOR(14)  /* Alias */
732
734
#define SIG_UART_DATA                   _VECTOR(14)
733
735
 
734
736
/* USART0, Tx Complete */
735
737
#define USART0_TX_vect                  _VECTOR(15)
 
738
#define USART_TX_vect                   _VECTOR(15)  /* Alias */
736
739
#define SIG_UART_TRANS                  _VECTOR(15)
737
740
 
738
741
/* USI Start Condition */
765
768
/* Constants */
766
769
#define SPM_PAGESIZE    128
767
770
#define RAMEND          0x4FF
768
 
#define XRAMEND         0x4FF
 
771
#define XRAMEND         RAMEND
769
772
#define E2END           0x1FF
 
773
#define E2PAGESIZE      4
770
774
#define FLASHEND        0x3FFF
771
775
 
772
776
 
775
779
#define FUSE_MEMORY_SIZE 3
776
780
 
777
781
/* Low Fuse Byte */
778
 
#define FUSE_CKSEL0      ~_BV(0)
779
 
#define FUSE_CKSEL1      ~_BV(1)
780
 
#define FUSE_CKSEL2      ~_BV(2)
781
 
#define FUSE_CKSEL3      ~_BV(3)
782
 
#define FUSE_SUT0        ~_BV(4)
783
 
#define FUSE_SUT1        ~_BV(5)
784
 
#define FUSE_CKOUT       ~_BV(6)
785
 
#define FUSE_CKDIV8      ~_BV(7)
 
782
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
783
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
784
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
785
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
786
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
787
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
788
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
789
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
786
790
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
787
791
 
788
792
/* High Fuse Byte */
789
 
#define FUSE_BOOTRST     ~_BV(0)
790
 
#define FUSE_BOOTSZ0     ~_BV(1)
791
 
#define FUSE_BOOTSZ1     ~_BV(2)
792
 
#define FUSE_EESAVE      ~_BV(3)
793
 
#define FUSE_WDTON       ~_BV(4)
794
 
#define FUSE_SPIEN       ~_BV(5)
795
 
#define FUSE_JTAGEN      ~_BV(6)
796
 
#define FUSE_OCDEN       ~_BV(7)
 
793
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
794
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
795
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
796
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
797
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
798
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
799
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
800
#define FUSE_OCDEN       (unsigned char)~_BV(7)
797
801
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
798
802
 
799
803
/* Extended Fuse Byte */
800
 
#define FUSE_BODLEVEL0   ~_BV(1)
801
 
#define FUSE_BODLEVEL1   ~_BV(2)
802
 
#define FUSE_BODLEVEL2   ~_BV(3)
 
804
#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
 
805
#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
 
806
#define FUSE_BODLEVEL2   (unsigned char)~_BV(3)
803
807
#define EFUSE_DEFAULT (0xFF)
804
808
 
805
809
 
809
813
#define __BOOT_LOCK_BITS_1_EXIST 
810
814
 
811
815
 
 
816
/* Signature */
 
817
#define SIGNATURE_0 0x1E
 
818
#define SIGNATURE_1 0x94
 
819
#define SIGNATURE_2 0x07
 
820
 
 
821
 
812
822
#endif /* _AVR_IOM165P_H_ */