TuyaOS
tal_system.h
浏览该文件的文档.
1
10#ifndef __TAL_SYSTEM_H__
11#define __TAL_SYSTEM_H__
12
13#include "tuya_cloud_types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
26
33VOID_T tal_system_exit_critical(UINT_T irq_mask);
34
38#define TAL_ENTER_CRITICAL() \
39 UINT_T __irq_mask; \
40 __irq_mask = tal_system_enter_critical()
41
45#define TAL_EXIT_CRITICAL() \
46 tal_system_exit_critical(__irq_mask)
47
48
49
59VOID_T tal_system_sleep(UINT_T time_ms);
60
61
69VOID_T tal_system_reset(VOID_T);
70
79
87SYS_TICK_T tal_system_get_tick_count(VOID_T);
88
96SYS_TIME_T tal_system_get_millisecond(VOID_T);
97
105INT_T tal_system_get_random(UINT_T range);
106
114TUYA_RESET_REASON_E tal_system_get_reset_reason(CHAR_T** describe);
115
116
126VOID_T tal_system_delay(UINT_T time_ms);
127
137OPERATE_RET tal_system_get_cpu_info(TUYA_CPU_INFO_T **cpu_ary, INT_T *cpu_cnt);
138
139#ifdef __cplusplus
140}
141#endif /* __cplusplus */
142
143#endif
144
145
146
VOID_T tal_system_reset(VOID_T)
system reset
VOID_T tal_system_sleep(UINT_T time_ms)
System sleep
INT_T tal_system_get_free_heap_size(VOID_T)
Get system free heap size
VOID_T tal_system_exit_critical(UINT_T irq_mask)
system exit critical
OPERATE_RET tal_system_get_cpu_info(TUYA_CPU_INFO_T **cpu_ary, INT_T *cpu_cnt)
get system cpu info
SYS_TIME_T tal_system_get_millisecond(VOID_T)
Get system millisecond
SYS_TICK_T tal_system_get_tick_count(VOID_T)
Get system tick count
INT_T tal_system_get_random(UINT_T range)
Get system random data
UINT_T tal_system_enter_critical(VOID_T)
system enter critical
VOID_T tal_system_delay(UINT_T time_ms)
system delay
TUYA_RESET_REASON_E tal_system_get_reset_reason(CHAR_T **describe)
Get system reset reason