TuyaOS
宏定义 | 函数
tal_system.h 文件参考

Common process - adpater some api which provide by OS 更多...

#include "tuya_cloud_types.h"
tal_system.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define TAL_ENTER_CRITICAL()
 enter critical macro 更多...
 
#define TAL_EXIT_CRITICAL()    tal_system_exit_critical(__irq_mask)
 exit critical macro
 

函数

VOID_T tal_system_delay (UINT_T time_ms)
 system delay 更多...
 
UINT_T tal_system_enter_critical (VOID_T)
 system enter critical 更多...
 
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 更多...
 
INT_T tal_system_get_free_heap_size (VOID_T)
 Get system free heap size 更多...
 
SYS_TIME_T tal_system_get_millisecond (VOID_T)
 Get system millisecond 更多...
 
INT_T tal_system_get_random (UINT_T range)
 Get system random data 更多...
 
TUYA_RESET_REASON_E tal_system_get_reset_reason (CHAR_T **describe)
 Get system reset reason 更多...
 
SYS_TICK_T tal_system_get_tick_count (VOID_T)
 Get system tick count 更多...
 
VOID_T tal_system_reset (VOID_T)
 system reset 更多...
 
VOID_T tal_system_sleep (UINT_T time_ms)
 System sleep 更多...
 

详细描述

Common process - adpater some api which provide by OS

版本
0.1
日期
2021-08-24

宏定义说明

◆ TAL_ENTER_CRITICAL

#define TAL_ENTER_CRITICAL ( )
值:
UINT_T __irq_mask; \
UINT_T tal_system_enter_critical(VOID_T)
system enter critical

enter critical macro

函数说明

◆ tal_system_delay()

VOID_T tal_system_delay ( UINT_T  time_ms)

system delay

参数
[in]time_mstime in MS
注解
This API is used for system delay.
返回
VOID

◆ tal_system_enter_critical()

UINT_T tal_system_enter_critical ( VOID_T  )

system enter critical

参数
[in]none
返回
irq mask

◆ tal_system_exit_critical()

VOID_T tal_system_exit_critical ( UINT_T  irq_mask)

system exit critical

参数
[in]irq_maskirq mask
返回
none

◆ tal_system_get_cpu_info()

OPERATE_RET tal_system_get_cpu_info ( TUYA_CPU_INFO_T **  cpu_ary,
INT_T *  cpu_cnt 
)

get system cpu info

参数
[in]cpu_aryinfo of cpus
[in]cpu_cntnum of cpu
注解
This API is used for system cpu info get.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_get_free_heap_size()

INT_T tal_system_get_free_heap_size ( VOID_T  )

Get system free heap size

参数
none
返回
heap size

◆ tal_system_get_millisecond()

SYS_TIME_T tal_system_get_millisecond ( VOID_T  )

Get system millisecond

参数
none
返回
system millisecond

◆ tal_system_get_random()

INT_T tal_system_get_random ( UINT_T  range)

Get system random data

参数
[in]rangerandom from 0 to range
返回
random value

◆ tal_system_get_reset_reason()

TUYA_RESET_REASON_E tal_system_get_reset_reason ( CHAR_T **  describe)

Get system reset reason

参数
[in]describepoint to reset reason describe
返回
reset reason

◆ tal_system_get_tick_count()

SYS_TICK_T tal_system_get_tick_count ( VOID_T  )

Get system tick count

参数
none
返回
system tick count

◆ tal_system_reset()

VOID_T tal_system_reset ( VOID_T  )

system reset

参数
none
返回
none

◆ tal_system_sleep()

VOID_T tal_system_sleep ( UINT_T  time_ms)

System sleep

参数
[in]time_mstime in MS
注解
This API is used for system sleep.
返回
VOID