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

This is tal_system file 更多...

#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 (UINT32_T time_ms)
 This API is used for system delay. 更多...
 
UINT32_T tal_system_enter_critical (VOID_T)
 system enter critical 更多...
 
VOID_T tal_system_exit_critical (UINT32_T irq_mask)
 system exit critical 更多...
 
OPERATE_RET tal_system_get_cpu_info (TUYA_CPU_INFO_T **cpu_ary, INT32_T *cpu_cnt)
 This API is used for system cpu info get. 更多...
 
SYS_TIME_T tal_system_get_millisecond (VOID_T)
 tal_system_get_millisecond 更多...
 
INT32_T tal_system_get_random (UINT32_T range)
 Get system random data 更多...
 
TUYA_RESET_REASON_E tal_system_get_reset_reason (CHAR_T **describe)
 tal_system_get_reset_reason 更多...
 
SYS_TICK_T tal_system_get_tick_count (VOID_T)
 tal_system_get_tick_count 更多...
 
VOID_T tal_system_reset (VOID_T)
 tal_system_reset 更多...
 
VOID_T tal_system_sleep (UINT32_T time_ms)
 This API is used for system sleep. 更多...
 

详细描述

This is tal_system file

版本
1.0
日期
2021-08-24

宏定义说明

◆ TAL_ENTER_CRITICAL

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

enter critical macro

函数说明

◆ tal_system_delay()

VOID_T tal_system_delay ( UINT32_T  time_ms)

This API is used for system delay.

参数
[in]time_mstime in MS
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_enter_critical()

UINT32_T tal_system_enter_critical ( VOID_T  )

system enter critical

参数
[in]none
返回
irq mask

◆ tal_system_exit_critical()

VOID_T tal_system_exit_critical ( UINT32_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,
INT32_T *  cpu_cnt 
)

This API is used for system cpu info get.

参数
[in]**cpu_aryinfo of cpus
[in]*cpu_cntnum of cpu
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_get_millisecond()

SYS_TIME_T tal_system_get_millisecond ( VOID_T  )

tal_system_get_millisecond

参数
[in]paramnone
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_get_random()

INT32_T tal_system_get_random ( UINT32_T  range)

Get system random data

参数
[in]rangerandom from 0 to range
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_get_reset_reason()

TUYA_RESET_REASON_E tal_system_get_reset_reason ( CHAR_T **  describe)

tal_system_get_reset_reason

参数
[in]describepoint to reset reason describe
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_get_tick_count()

SYS_TICK_T tal_system_get_tick_count ( VOID_T  )

tal_system_get_tick_count

参数
[in]paramnone
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_reset()

VOID_T tal_system_reset ( VOID_T  )

tal_system_reset

参数
[in]paramnone
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_system_sleep()

VOID_T tal_system_sleep ( UINT32_T  time_ms)

This API is used for system sleep.

参数
[in]time_mstime in MS
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h