diff options
Diffstat (limited to '')
| -rw-r--r-- | test/stubbed/avr/io.h | 46 | ||||
| -rw-r--r-- | test/stubbed/testindex.c | 26 |
2 files changed, 49 insertions, 23 deletions
diff --git a/test/stubbed/avr/io.h b/test/stubbed/avr/io.h index 40cc460..c056ef1 100644 --- a/test/stubbed/avr/io.h +++ b/test/stubbed/avr/io.h @@ -2,13 +2,13 @@ #define STUB_AVR_IO #include <stdio.h> -static int DDRA = 0; -static int DDRB = 0; +extern int DDRA; +extern int DDRB; -static int PORTA = 0; -static int PORTB = 0; -static int PINA = 0; -static int PINB = 0; +extern int PORTA; +extern int PORTB; +extern int PINA; +extern int PINB; #define PA0 0 #define PA1 1 @@ -24,23 +24,23 @@ static int PINB = 0; #define PB3 3 #define PB4 4 -static int PRR = 0; -static int TCCR0B = 0; -static int TCCR0A = 0; -static int TIMSK0 = 0; -static int TIFR0 = 0; -static int OCR0A = 0; -static int OCR0B = 0; -static int TCNT0 = 0; -static int TCCR1B = 0; -static int TCCR1A = 0; -static int TIMSK1 = 0; -static int TIFR1 = 0; -static int OCR1A = 0; -static int OCR1B = 0; -static int TCNT1 = 0; -static int TCNT1H = 0; -static int TCNT1L = 0; +extern int PRR; +extern int TCCR0B; +extern int TCCR0A; +extern int TIMSK0; +extern int TIFR0; +extern int OCR0A; +extern int OCR0B; +extern int TCNT0; +extern int TCCR1B; +extern int TCCR1A; +extern int TIMSK1; +extern int TIFR1; +extern int OCR1A; +extern int OCR1B; +extern int TCNT1; +extern int TCNT1H; +extern int TCNT1L; #define CS00 1 #define CS01 1 diff --git a/test/stubbed/testindex.c b/test/stubbed/testindex.c new file mode 100644 index 0000000..e3c8866 --- /dev/null +++ b/test/stubbed/testindex.c @@ -0,0 +1,26 @@ + +int DDRA = 0; +int DDRB = 0; + +int PORTA = 0; +int PORTB = 0; +int PINA = 0; +int PINB = 0; + +int PRR = 0; +int TCCR0B = 0; +int TCCR0A = 0; +int TIMSK0 = 0; +int TIFR0 = 0; +int OCR0A = 0; +int OCR0B = 0; +int TCNT0 = 0; +int TCCR1B = 0; +int TCCR1A = 0; +int TIMSK1 = 0; +int TIFR1 = 0; +int OCR1A = 0; +int OCR1B = 0; +int TCNT1 = 0; +int TCNT1H = 0; +int TCNT1L = 0; |
