diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-12 13:54:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-12 13:54:37 -0700 |
commit | 6a3ee911353291b04e161d50a181ed4211d467a2 (patch) | |
tree | fbc8e7b766e991a24f3c8b688b6a08c48ccb44d7 /src/core/ao.h | |
parent | 7795d8309b3e1147bc37d31a0adde42d7dee6cd1 (diff) |
altos: Allow projects to specify clock at other than 100Hz
Leave the default at 100Hz, but allow it to be overridden
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r-- | src/core/ao.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 711b3533..9d801489 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -85,7 +85,9 @@ ao_panic(uint8_t reason); extern volatile __data AO_TICK_TYPE ao_tick_count; /* Our timer runs at 100Hz */ +#ifndef AO_HERTZ #define AO_HERTZ 100 +#endif #define AO_MS_TO_TICKS(ms) ((ms) / (1000 / AO_HERTZ)) #define AO_SEC_TO_TICKS(s) ((s) * AO_HERTZ) |