xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
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
21extern "C" {
22#endif
23
30
31/* ==================== [Defines] =========================================== */
32
33/* ==================== [Typedefs] ========================================== */
34
35/* ==================== [Global Prototypes] ================================= */
36
41
47uint32_t xt_hal_core_get_tick(void);
48
54uint64_t xt_hal_core_get_us(void);
55
62uint32_t xt_hal_core_set_cpu_freq(uint32_t freq_hz);
63
70
75
81uint32_t xt_hal_core_uid(void);
82
92uint32_t xt_version(void);
93
99const 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__ */
uint32_t xt_hal_core_get_cpu_freq(void)
获取当前 CPU 频率
uint32_t xt_hal_core_get_tick(void)
获取系统 tick 计数
uint32_t xt_hal_core_set_cpu_freq(uint32_t freq_hz)
设置 CPU 频率
const char * xt_build_info(void)
xt core 编译信息查询
uint32_t xt_hal_core_uid(void)
获取芯片唯一标识
void xt_hal_core_reboot(void)
系统重启
uint64_t xt_hal_core_get_us(void)
获取系统微秒时间戳
void xt_hal_core_setup(void)
初始化 HAL 核心模块
uint32_t xt_version(void)
xt core 版本号查询
XTINY HAL 内部公共头文件