projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Fix a bunch of time variables to be AO_TICK_TYPE
[fw/altos]
/
src
/
attiny
/
ao_clock.c
diff --git
a/src/attiny/ao_clock.c
b/src/attiny/ao_clock.c
index 2ac0500b217f307466fd8be143eae566969eac89..0669585082bec63d74f2b9585b421756302d303c 100644
(file)
--- a/
src/attiny/ao_clock.c
+++ b/
src/attiny/ao_clock.c
@@
-31,7
+31,7
@@
ISR(TIMER1_COMPA_vect)
AO_TICK_TYPE
ao_time(void)
{
AO_TICK_TYPE
ao_time(void)
{
-
uint16_t
r;
+
AO_TICK_TYPE
r;
cli();
r = ao_tick_count;
cli();
r = ao_tick_count;
@@
-127,7
+127,7
@@
void ao_delay_us(uint16_t us)
}
void
}
void
-ao_delay_until(
uint16_t
target)
+ao_delay_until(
AO_TICK_TYPE
target)
{
cli();
ao_wakeup_count = target;
{
cli();
ao_wakeup_count = target;
@@
-137,7
+137,7
@@
ao_delay_until(uint16_t target)
}
void
}
void
-ao_delay(
uint16_t
ticks)
+ao_delay(
AO_TICK_TYPE
ticks)
{
ao_delay_until(ao_time() + ticks);
}
{
ao_delay_until(ao_time() + ticks);
}