diff options
Diffstat (limited to 'src/gos/gos_zephyr.c')
-rw-r--r-- | src/gos/gos_zephyr.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gos/gos_zephyr.c b/src/gos/gos_zephyr.c new file mode 100644 index 00000000..401d9f6a --- /dev/null +++ b/src/gos/gos_zephyr.c @@ -0,0 +1,18 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#include "../../gfx.h" + +#if GFX_USE_OS_ZEPHYR + +systemticks_t gfxSystemTicks(void) +{ + s32_t ms = k_uptime_get_32(); + return CONFIG_SYS_CLOCK_TICKS_PER_SEC*ms/1000; +} + +#endif // GFX_USE_OS_ZEPHYR |