Partial support for ATmega1280
authorJ. Hendrix <gitweb@localhost>
Fri, 27 Sep 2013 19:33:44 +0000 (21:33 +0200)
committerJ. Hendrix <gitweb@localhost>
Fri, 27 Sep 2013 19:33:44 +0000 (21:33 +0200)
avrRegisters

index 91cfe5b..ca052c8 100755 (executable)
@@ -36,11 +36,12 @@ sub checkRegister {
 ###
 foreach my $line ( <DATA> ) {
        chomp( $line );
-       my ( $type , $addr , $tn45 , $tn2313 , $m328 , $m16 ) = split( /[       ]+/ , $line );
+       my ( $type , $addr , $tn45 , $tn2313 , $m328 , $m16 , $m1280 ) = split( /[      ]+/ , $line );
        $name{ $type }->{ $addr }->{ 'tn45' }   = checkRegister( $tn45 , $addr );
        $name{ $type }->{ $addr }->{ 'tn2313' } = checkRegister( $tn2313 , $addr );
        $name{ $type }->{ $addr }->{ 'm328' }   = checkRegister( $m328 , $addr );
        $name{ $type }->{ $addr }->{ 'm16' }    = checkRegister( $m16 , $addr );
+       $name{ $type }->{ $addr }->{ 'm1280' }  = checkRegister( $m1280 , $addr );
 }
 
 ###
@@ -74,51 +75,54 @@ foreach my $line ( <STDIN> ) {
 }
 
 __DATA__
-type   addr            tn45            tn2313                  m328            m16
-REG    0x02            ?               UBRRH                   ?               ?
-REG    0x03            ?               UCSRC                   ?               ?
-REG    0x09            ?               UBRRL                   ?               ?
-REG    0x0a            ?               UCSRB                   DDRB            ?
-REG    0x0b            ?               UCSRA                   PORTB           ?
-REG    0x0c            ?               UDR                     ?               ?
-REG    0x0d            USICR           USICR                   ?               ?
-REG    0x0e            USISR           USISR                   ?               ?
-REG    0x0f            USIDR           USIDR                   ?               ?
-REG    0x10            ?               PIND                    ?               ?
-REG    0x11            ?               DDRD                    ?               ?
-REG    0x12            ?               PORTD                   ?               ?
-REG    0x16            PINB            PINB                    ?               ?
-REG    0x17            DDRB            DDRB                    ?               ?
-REG    0x18            PORTB           PORTB                   ?               ?
-REG    0x19            ?               PINA                    ?               PINA
-REG    0x1a            ?               DDRA                    ?               DDRA
-REG    0x1b            ?               PORTA                   ?               PORTA
-REG    0x22            ?               TCCR1C                  ?               ?
-REG    0x24            ?               ICR1L                   ?               ?
-REG    0x25            ?               ICR1H                   ?               ?
-REG    0x26            ?               CLKPR                   ?               ?
-REG    0x28            ?               OCR1BL                  ?               ?
-REG    0x29            ?               OCR1BH                  ?               ?
-REG    0x2a            ?               OCR1AL                  ?               ?
-REG    0x2b            ?               OCR1AH                  ?               ?
-REG    0x2c            ?               TCNT1L                  ?               ?
-REG    0x2d            ?               TCNT1H                  ?               ?
-REG    0x2e            ?               TCCR1B                  ?               ?
-REG    0x2f            TCNT1           TCCR1A                  ?               ?
-REG    0x35            MCUCR           MCUCR                   ?               ?
-REG    0x38            TIFR            TIFR                    ?               ?
-REG    0x3a            GIFR            EIFR                    ?               ?
-REG    0x3b            GIMSK           GIMSK                   ?               ?
-REG    0x3d            SPL             SPL                     SPL             SPL
-REG    0x3e            SPH             ?                       SPH             SPH
-REG    0x3f            SREG            SREG                    SREG            SREG
-INTVEC __ctors_end     RESET_vect      RESET_vect              RESET_vect      RESET_vect
-INTVEC __vector_1      INT0_vect       ?                       ?               ?
-INTVEC __vector_3      ?               TIMER1_CAPT_vect        ?               ?
-INTVEC __vector_4      TIMER1_OVF_vect TIMER1_COMPA_vect       ?               ?
-INTVEC __vector_5      ?               TIMER1_OVF_vect         ?               ?
-INTVEC __vector_7      ?               USART_RX_vect           ?               ?
-INTVEC __vector_8      ?               USART_UDRE_vect         ?               ?
-INTVEC __vector_9      ?               USART_TX_vect           ?               ?
-INTVEC __vector_13     ?               TIMER0_COMPA_vect       ?               ?
-type   addr            tn45            tn2313                  m328            m16
+type   addr            tn45            tn2313                  m328            m16             m1280
+REG    0x02            ?               UBRRH                   ?               ?               PORTA
+REG    0x03            ?               UCSRC                   ?               ?               PINB
+REG    0x09            ?               UBRRL                   ?               ?               PIND
+REG    0x0a            ?               UCSRB                   DDRB            ?               DDRD
+REG    0x0b            ?               UCSRA                   PORTB           ?               PORTD
+REG    0x0c            ?               UDR                     ?               ?               PINE
+REG    0x0d            USICR           USICR                   ?               ?               DDRE
+REG    0x0e            USISR           USISR                   ?               ?               PORTE
+REG    0x0f            USIDR           USIDR                   ?               ?               PINF
+REG    0x10            ?               PIND                    ?               ?               DDRF
+REG    0x11            ?               DDRD                    ?               ?               PORTF
+REG    0x12            ?               PORTD                   ?               ?               PING
+REG    0x16            PINB            PINB                    ?               ?               TIFR1
+REG    0x17            DDRB            DDRB                    ?               ?               TIFR2
+REG    0x18            PORTB           PORTB                   ?               ?               TIFR3
+REG    0x19            ?               PINA                    ?               PINA            TIFR4
+REG    0x1a            ?               DDRA                    ?               DDRA            TIFR5
+REG    0x1b            ?               PORTA                   ?               PORTA           PCIFR
+REG    0x22            ?               TCCR1C                  ?               ?               EEARH
+REG    0x24            ?               ICR1L                   ?               ?               TCCR0A
+REG    0x25            ?               ICR1H                   ?               ?               TCCR0B
+REG    0x26            ?               CLKPR                   ?               ?               TCNT0
+REG    0x28            ?               OCR1BL                  ?               ?               OCR0B
+REG    0x29            ?               OCR1BH                  ?               ?               ?
+REG    0x2a            ?               OCR1AL                  ?               ?               GPIOR1
+REG    0x2b            ?               OCR1AH                  ?               ?               GPIOR2
+REG    0x2c            ?               TCNT1L                  ?               ?               SPCR
+REG    0x2d            ?               TCNT1H                  ?               ?               SPSR
+REG    0x2e            ?               TCCR1B                  ?               ?               SPDR
+REG    0x2f            TCNT1           TCCR1A                  ?               ?               ?
+REG    0x35            MCUCR           MCUCR                   ?               ?               MCUCR
+REG    0x38            TIFR            TIFR                    ?               ?               ?
+REG    0x3a            GIFR            EIFR                    ?               ?               ?
+REG    0x3b            GIMSK           GIMSK                   ?               ?               RAMPZ
+REG    0x3d            SPL             SPL                     SPL             SPL             SPL
+REG    0x3e            SPH             ?                       SPH             SPH             SPH
+REG    0x3f            SREG            SREG                    SREG            SREG            SREG
+INTVEC __ctors_end     RESET_vect      RESET_vect              RESET_vect      RESET_vect      RESET_vect
+INTVEC __vector_1      INT0_vect       ?                       ?               ?               INT0_vect
+INTVEC __vector_2      ?               ?                       ?               ?               INT1_vect
+INTVEC __vector_3      ?               TIMER1_CAPT_vect        ?               ?               INT2_vect
+INTVEC __vector_4      TIMER1_OVF_vect TIMER1_COMPA_vect       ?               ?               INT3_vect
+INTVEC __vector_5      ?               TIMER1_OVF_vect         ?               ?               INT4_vect
+INTVEC __vector_6      ?               ?                       ?               ?               INT5_vect
+INTVEC __vector_7      ?               USART_RX_vect           ?               ?               INT6_vect
+INTVEC __vector_8      ?               USART_UDRE_vect         ?               ?               INT7_vect
+INTVEC __vector_9      ?               USART_TX_vect           ?               ?               PCINT0_vect
+INTVEC __vector_13     ?               TIMER0_COMPA_vect       ?               ?               TIMER2_COMPA_vect
+INTVEC __vector_23     ?               ?                       ?               ?               TIMER0_OVF_vect
+type   addr            tn45            tn2313                  m328            m16             ?