aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_zephyr.c
blob: 713f8c7be1d3942e15164f9bbba6d778c02d2a10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.io/license.html
 */

#include "../../gfx.h"

#if GFX_USE_OS_ZEPHYR

gTicks gfxSystemTicks(void)
{
	s32_t ms = k_uptime_get_32();
	return CONFIG_SYS_CLOCK_TICKS_PER_SEC*ms/1000;
}

#endif // GFX_USE_OS_ZEPHYR