summaryrefslogtreecommitdiff
path: root/src/attiny
diff options
context:
space:
mode:
Diffstat (limited to 'src/attiny')
-rw-r--r--src/attiny/ao_arch.h5
-rw-r--r--src/attiny/ao_clock.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/attiny/ao_arch.h b/src/attiny/ao_arch.h
index dfd41afe..5550eb44 100644
--- a/src/attiny/ao_arch.h
+++ b/src/attiny/ao_arch.h
@@ -36,6 +36,11 @@
#define AO_LED_TYPE uint8_t
+#ifndef AO_TICK_TYPE
+#define AO_TICK_TYPE uint16_t
+#define AO_TICK_SIGNED int16_t
+#endif
+
/* Various definitions to make GCC look more like SDCC */
#define ao_arch_naked_declare __attribute__((naked))
diff --git a/src/attiny/ao_clock.c b/src/attiny/ao_clock.c
index d722d568..2ac0500b 100644
--- a/src/attiny/ao_clock.c
+++ b/src/attiny/ao_clock.c
@@ -28,7 +28,7 @@ ISR(TIMER1_COMPA_vect)
ao_wakeup((void *) &ao_tick_count);
}
-uint16_t
+AO_TICK_TYPE
ao_time(void)
{
uint16_t r;