From 43c3eb90cc73ee3094590ab5b315d3611fcf848a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 2 Feb 2026 11:56:49 +0530 Subject: Add simple stubb for testing --- test/stubbed/avr/io.h | 24 ++++++++++++++++++++++++ test/stubbed/util/delay.h | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 test/stubbed/avr/io.h create mode 100644 test/stubbed/util/delay.h (limited to 'test') diff --git a/test/stubbed/avr/io.h b/test/stubbed/avr/io.h new file mode 100644 index 0000000..cd4a7bc --- /dev/null +++ b/test/stubbed/avr/io.h @@ -0,0 +1,24 @@ +#include + +int DDRA = 0; +int DDRB = 0; + +int PORTA = 0; +int PORTB = 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; + diff --git a/test/stubbed/util/delay.h b/test/stubbed/util/delay.h new file mode 100644 index 0000000..ce4323e --- /dev/null +++ b/test/stubbed/util/delay.h @@ -0,0 +1,5 @@ +#include + +void _delay_ms(int ms) { + usleep(ms * 1000); +} -- cgit v1.3.1