diff options
author | Bdale Garbee <bdale@gag.com> | 2019-02-25 18:30:08 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2019-02-25 18:30:08 -0700 |
commit | 338372b97d441c30d2a23df540163a66a7f8d8c0 (patch) | |
tree | 65544591dbc34d449af0f7fd6c0c0eb4cb075f6b /src/kernel/ao.h | |
parent | 8d0df64bbc5ed31188b4b4bea0be52a52dbece3b (diff) | |
parent | cd920a0e5321166ef8b1d6afc3d63fc5de998a93 (diff) |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/kernel/ao.h')
-rw-r--r-- | src/kernel/ao.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h index 910c1d8e..dddcd9cb 100644 --- a/src/kernel/ao.h +++ b/src/kernel/ao.h @@ -100,8 +100,8 @@ extern AO_ROMCONFIG_SYMBOL uint32_t ao_radio_cal; */ #ifndef AO_TICK_TYPE -#define AO_TICK_TYPE uint16_t -#define AO_TICK_SIGNED int16_t +#define AO_TICK_TYPE uint32_t +#define AO_TICK_SIGNED int32_t #endif extern volatile AO_TICK_TYPE ao_tick_count; @@ -117,6 +117,10 @@ extern volatile AO_TICK_TYPE ao_tick_count; AO_TICK_TYPE ao_time(void); +/* Returns the current time in ns */ +uint64_t +ao_time_ns(void); + /* Suspend the current task until ticks time has passed */ void ao_delay(uint16_t ticks); |