Partial support for ATmega16
authorJ. Hendrix <gitweb@localhost>
Mon, 3 Jun 2013 21:14:12 +0000 (23:14 +0200)
committerJ. Hendrix <gitweb@localhost>
Mon, 3 Jun 2013 21:14:12 +0000 (23:14 +0200)
avrRegisters

index 0e85558..91cfe5b 100755 (executable)
@@ -36,10 +36,11 @@ sub checkRegister {
 ###
 foreach my $line ( <DATA> ) {
        chomp( $line );
-       my ( $type , $addr , $tn45 , $tn2313 , $m328 ) = split( /[      ]+/ , $line );
-       $name{ $type }->{ $addr }->{ 'tn45' } = checkRegister( $tn45 , $addr );
+       my ( $type , $addr , $tn45 , $tn2313 , $m328 , $m16 ) = 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 }->{ 'm328' }   = checkRegister( $m328 , $addr );
+       $name{ $type }->{ $addr }->{ 'm16' }    = checkRegister( $m16 , $addr );
 }
 
 ###
@@ -73,51 +74,51 @@ foreach my $line ( <STDIN> ) {
 }
 
 __DATA__
-type   addr            tn45            tn2313                  m328
-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                    ?
-REG    0x1a            ?               DDRA                    ?
-REG    0x1b            ?               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
-REG    0x3e            SPH             ?                       SPH
-REG    0x3f            SREG            SREG                    SREG
-INTVEC __ctors_end     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
+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