xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_platform_version(平台版本号)

XTINY 平台版本查询接口 更多...

函数

const char * xt_platform_get_version (void)
 获取平台版本字符串

详细描述

XTINY 平台版本查询接口

函数说明

◆ xt_platform_get_version()

const char * xt_platform_get_version ( void )

获取平台版本字符串

版本格式:

  • 有匹配 Rxx.yy tag 时: "<tag>-<commit_hash>",如 "R01.02-3d08ea4a"
  • 无匹配 tag 时: "unknown-<commit_hash>"
  • git 不可用时: "unknown-unknown"
返回
const char* 指向平台版本字符串的指针