projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos]
/
src
/
kernel
/
ao.h
diff --git
a/src/kernel/ao.h
b/src/kernel/ao.h
index 910c1d8ed97c532c70da13957fd087f6ee06b84a..dddcd9cb5afd6d8a4079d96eacac2842933b466a 100644
(file)
--- 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
*/
#ifndef AO_TICK_TYPE
-#define AO_TICK_TYPE uint
16
_t
-#define AO_TICK_SIGNED int
16
_t
+#define AO_TICK_TYPE uint
32
_t
+#define AO_TICK_SIGNED int
32
_t
#endif
extern volatile AO_TICK_TYPE ao_tick_count;
#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);
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);
/* Suspend the current task until ticks time has passed */
void
ao_delay(uint16_t ticks);