altos: add ao_time_ns API
authorKeith Packard <keithp@keithp.com>
Mon, 25 Feb 2019 23:42:25 +0000 (16:42 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 25 Feb 2019 23:42:25 +0000 (16:42 -0700)
commitcd920a0e5321166ef8b1d6afc3d63fc5de998a93
tree91ac01e9748a5d9395b2d30fc0ed117584c9e95c
parent0448b9b638f8599633227a639ef9d8572780bbd9
altos: add ao_time_ns API

This provides nano-second resolution times by reading the systick
value (which runs at 250ns ticks on stm).

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao.h
src/lpc/ao_timer_lpc.c
src/stm/ao_timer.c
src/stmf0/ao_timer.c