~ubuntu-branches/ubuntu/maverick/avr-libc/maverick

« back to all changes in this revision

Viewing changes to include/avr/iom3250.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:
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: iom3250.h,v 1.12.2.2 2008/01/06 20:10:44 arcanum Exp $ */
 
31
/* $Id: iom3250.h,v 1.12.2.7 2009/02/11 18:05:28 arcanum Exp $ */
32
32
 
33
33
/* avr/iom3250.h - definitions for ATmega3250 and ATmega3250P.  */
34
34
 
782
782
 
783
783
/* Timer/Counter1 Compare Match A */
784
784
#define TIMER1_COMPA_vect               _VECTOR(7)
785
 
#define SIG_OUTPUT_COMPARE1A            _VECTOR(7)
 
785
#define SIG_OUTPUT_COMPARE1A    _VECTOR(7)
786
786
 
787
787
/* Timer/Counter Compare Match B */
788
788
#define TIMER1_COMPB_vect               _VECTOR(8)
789
 
#define SIG_OUTPUT_COMPARE1B            _VECTOR(8)
 
789
#define SIG_OUTPUT_COMPARE1B    _VECTOR(8)
790
790
 
791
791
/* Timer/Counter1 Overflow */
792
792
#define TIMER1_OVF_vect                 _VECTOR(9)
802
802
 
803
803
/* SPI Serial Transfer Complete */
804
804
#define SPI_STC_vect                    _VECTOR(12)
805
 
#define SIG_SPI                         _VECTOR(12)
 
805
#define SIG_SPI                             _VECTOR(12)
806
806
 
807
807
/* USART, Rx Complete */
808
808
#define USART_RX_vect                   _VECTOR(13)
 
809
#define USART0_RX_vect                  _VECTOR(13)  /* Alias */
809
810
#define SIG_UART_RECV                   _VECTOR(13)
810
811
 
811
812
/* USART Data register Empty */
812
813
#define USART_UDRE_vect                 _VECTOR(14)
 
814
#define USART0_UDRE_vect                _VECTOR(14)  /* Alias */
813
815
#define SIG_UART_DATA                   _VECTOR(14)
814
816
 
815
817
/* USART0, Tx Complete */
816
818
#define USART0_TX_vect                  _VECTOR(15)
 
819
#define USART_TX_vect                   _VECTOR(15)  /* Alias */
817
820
#define SIG_UART_TRANS                  _VECTOR(15)
818
821
 
819
822
/* USI Start Condition */
854
857
/* Constants */
855
858
#define SPM_PAGESIZE    128
856
859
#define RAMEND          0x8FF
857
 
#define XRAMEND         0x8FF
 
860
#define XRAMEND         RAMEND
858
861
#define E2END           0x3FF
 
862
#define E2PAGESIZE      4
859
863
#define FLASHEND        0x7FFF
860
864
 
861
865
 
864
868
#define FUSE_MEMORY_SIZE 3
865
869
 
866
870
/* Low Fuse Byte */
867
 
#define FUSE_CKSEL0      ~_BV(0)
868
 
#define FUSE_CKSEL1      ~_BV(1)
869
 
#define FUSE_CKSEL2      ~_BV(2)
870
 
#define FUSE_CKSEL3      ~_BV(3)
871
 
#define FUSE_SUT0        ~_BV(4)
872
 
#define FUSE_SUT1        ~_BV(5)
873
 
#define FUSE_CKOUT       ~_BV(6)
874
 
#define FUSE_CKDIV8      ~_BV(7)
 
871
#define FUSE_CKSEL0      (unsigned char)~_BV(0)
 
872
#define FUSE_CKSEL1      (unsigned char)~_BV(1)
 
873
#define FUSE_CKSEL2      (unsigned char)~_BV(2)
 
874
#define FUSE_CKSEL3      (unsigned char)~_BV(3)
 
875
#define FUSE_SUT0        (unsigned char)~_BV(4)
 
876
#define FUSE_SUT1        (unsigned char)~_BV(5)
 
877
#define FUSE_CKOUT       (unsigned char)~_BV(6)
 
878
#define FUSE_CKDIV8      (unsigned char)~_BV(7)
875
879
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
876
880
 
877
881
/* High Fuse Byte */
878
 
#define FUSE_BOOTRST     ~_BV(0)
879
 
#define FUSE_BOOTSZ0     ~_BV(1)
880
 
#define FUSE_BOOTSZ1     ~_BV(2)
881
 
#define FUSE_EESAVE      ~_BV(3)
882
 
#define FUSE_WDTON       ~_BV(4)
883
 
#define FUSE_SPIEN       ~_BV(5)
884
 
#define FUSE_JTAGEN      ~_BV(6)
885
 
#define FUSE_OCDEN       ~_BV(7)
 
882
#define FUSE_BOOTRST     (unsigned char)~_BV(0)
 
883
#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
 
884
#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
 
885
#define FUSE_EESAVE      (unsigned char)~_BV(3)
 
886
#define FUSE_WDTON       (unsigned char)~_BV(4)
 
887
#define FUSE_SPIEN       (unsigned char)~_BV(5)
 
888
#define FUSE_JTAGEN      (unsigned char)~_BV(6)
 
889
#define FUSE_OCDEN       (unsigned char)~_BV(7)
886
890
#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
887
891
 
888
892
/* Extended Fuse Byte */
889
 
#define FUSE_RSTDISBL    ~_BV(0)
890
 
#define FUSE_BODLEVEL0   ~_BV(1)
891
 
#define FUSE_BODLEVEL1   ~_BV(2)
 
893
#define FUSE_RSTDISBL    (unsigned char)~_BV(0)
 
894
#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
 
895
#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
892
896
#define EFUSE_DEFAULT (0xFF)
893
897
 
894
898
 
898
902
#define __BOOT_LOCK_BITS_1_EXIST 
899
903
 
900
904
 
 
905
/* Signature */
 
906
#define SIGNATURE_0 0x1E
 
907
#define SIGNATURE_1 0x95
 
908
#define SIGNATURE_2 0x06
 
909
 
 
910
 
901
911
#endif /* _AVR_IOM3250_H_ */