From cc9d915435a61d71f11cffa264cf941de58fe444 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 4 Feb 2026 11:04:04 +0530 Subject: Switch from internal clock to crystal + button --- test/stubbed/avr/io.h | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'test/stubbed/avr/io.h') diff --git a/test/stubbed/avr/io.h b/test/stubbed/avr/io.h index cd4a7bc..cfbdef3 100644 --- a/test/stubbed/avr/io.h +++ b/test/stubbed/avr/io.h @@ -1,24 +1,28 @@ +#ifndef STUB_AVR_IO +#define STUB_AVR_IO #include -int DDRA = 0; -int DDRB = 0; +static int DDRA = 0; +static int DDRB = 0; -int PORTA = 0; -int PORTB = 0; +static int PORTA = 0; +static int PORTB = 0; +static int PINA = 0; +static int PINB = 0; -int PA1 = 1; -int PA2 = 2; -int PA3 = 3; -int PA4 = 4; -int PA5 = 5; -int PA6 = 6; -int PA7 = 7; - -int PB1 = 1; -int PB2 = 2; -int PB3 = 3; -int PB4 = 4; -int PB5 = 5; -int PB6 = 6; -int PB7 = 7; +#define PA1 1 +#define PA2 2 +#define PA3 3 +#define PA4 4 +#define PA5 5 +#define PA6 6 +#define PA7 7 +#define PB1 1 +#define PB2 2 +#define PB3 3 +#define PB4 4 +#define PB5 5 +#define PB6 6 +#define PB7 7 +#endif -- cgit v1.3.1