version 2.8
gos_zephyr.c
1 /*
2  * This file is subject to the terms of the GFX License. If a copy of
3  * the license was not distributed with this file, you can obtain one at:
4  *
5  * http://ugfx.org/license.html
6  */
7 
8 #include "../../gfx.h"
9 
10 #if GFX_USE_OS_ZEPHYR
11 
12 systemticks_t gfxSystemTicks(void)
13 {
14  s32_t ms = k_uptime_get_32();
15  return CONFIG_SYS_CLOCK_TICKS_PER_SEC*ms/1000;
16 }
17 
18 #endif // GFX_USE_OS_ZEPHYR
systemticks_t gfxSystemTicks(void)
Get the current operating system tick time.