1 Star 0 Fork 344

seasky100 / awtk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
platform_t.md 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
lixianjing 提交于 2019-12-11 16:21 . regen docs

platform_t

概述

平台接口,包括:获取时间、休眠等函数。

函数

函数名称 说明
get_time_ms64 获取当前时间。
platform_prepare 平台准备函数。
sleep_ms 睡眠指定时间。

get_time_ms64 函数


  • 函数功能:

获取当前时间。

  • 函数原型:
uint64_t get_time_ms64 ();
  • 参数说明:
参数 类型 说明
返回值 uint64_t 成功返回当前时间。

platform_prepare 函数


  • 函数功能:

平台准备函数。

  • 函数原型:
ret_t platform_prepare ();
  • 参数说明:
参数 类型 说明
返回值 ret_t 返回RET_OK表示成功,否则表示失败。

sleep_ms 函数


  • 函数功能:

睡眠指定时间。

  • 函数原型:
void sleep_ms (uint32_t ms);
  • 参数说明:
参数 类型 说明
返回值 void 无。
ms uint32_t 睡眠时间(毫秒)。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/seasky100/awtk.git
git@gitee.com:seasky100/awtk.git
seasky100
awtk
awtk
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891