xt-sdk 文档
v1.0.3
xt-sdk 嵌入式 SDK API 参考
Toggle main menu visibility
载入中...
搜索中...
未找到
xt_hal_core.h
浏览该文件的文档.
1
12
13
#ifndef __XT_HAL_CORE_H__
14
#define __XT_HAL_CORE_H__
15
16
/* ==================== [Includes] ========================================== */
17
18
#include "
xt_hal_internal.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
30
31
/* ==================== [Defines] =========================================== */
32
33
/* ==================== [Typedefs] ========================================== */
34
35
/* ==================== [Global Prototypes] ================================= */
36
40
void
xt_hal_core_setup
(
void
);
41
47
uint32_t
xt_hal_core_get_tick
(
void
);
48
54
uint64_t
xt_hal_core_get_us
(
void
);
55
62
uint32_t
xt_hal_core_set_cpu_freq
(uint32_t freq_hz);
63
69
uint32_t
xt_hal_core_get_cpu_freq
(
void
);
70
74
void
xt_hal_core_reboot
(
void
);
75
81
uint32_t
xt_hal_core_uid
(
void
);
82
92
uint32_t
xt_version
(
void
);
93
99
const
char
*
xt_build_info
(
void
);
100
101
/* ==================== [Global Prototypes] ================================= */
102
103
/* ==================== [Macros] ============================================ */
104
105
#define xt_tick_get() xt_hal_core_get_tick()
106
/* xt_hal_core */
108
109
#ifdef __cplusplus
110
}
/* extern "C" */
111
#endif
112
113
#endif
/* __XT_HAL_CORE_H__ */
xt_hal_core_get_cpu_freq
uint32_t xt_hal_core_get_cpu_freq(void)
获取当前 CPU 频率
xt_hal_core_get_tick
uint32_t xt_hal_core_get_tick(void)
获取系统 tick 计数
xt_hal_core_set_cpu_freq
uint32_t xt_hal_core_set_cpu_freq(uint32_t freq_hz)
设置 CPU 频率
xt_build_info
const char * xt_build_info(void)
xt core 编译信息查询
xt_hal_core_uid
uint32_t xt_hal_core_uid(void)
获取芯片唯一标识
xt_hal_core_reboot
void xt_hal_core_reboot(void)
系统重启
xt_hal_core_get_us
uint64_t xt_hal_core_get_us(void)
获取系统微秒时间戳
xt_hal_core_setup
void xt_hal_core_setup(void)
初始化 HAL 核心模块
xt_version
uint32_t xt_version(void)
xt core 版本号查询
xt_hal_internal.h
XTINY HAL 内部公共头文件
platforms
components
xtiny
xt_hal
xt_hal_core.h
生成于
, 为 xt-sdk 文档使用
1.17.0