2017-09-20 17:47:46 +00:00
|
|
|
/*
|
|
|
|
* 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:
|
|
|
|
*
|
2018-10-01 15:32:39 +00:00
|
|
|
* http://ugfx.io/license.html
|
2017-09-20 17:47:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../../gfx.h"
|
|
|
|
|
|
|
|
#if GFX_USE_OS_ZEPHYR
|
|
|
|
|
2018-07-08 04:30:31 +00:00
|
|
|
gTicks gfxSystemTicks(void)
|
2017-09-20 17:47:46 +00:00
|
|
|
{
|
|
|
|
s32_t ms = k_uptime_get_32();
|
|
|
|
return CONFIG_SYS_CLOCK_TICKS_PER_SEC*ms/1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // GFX_USE_OS_ZEPHYR
|