This is tal_system file
更多...
#include "tuya_cloud_types.h"
浏览源代码.
This is tal_system file
- 版本
- 1.0
- 日期
- 2021-08-24
- 版权所有
- Copyright 2021-2023 Tuya Inc. All Rights Reserved.
◆ 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.
- 参数
-
- 返回
- 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
- 参数
-
- 返回
- irq mask
◆ tal_system_exit_critical()
VOID_T tal_system_exit_critical |
( |
UINT32_T |
irq_mask | ) |
|
system exit critical
- 参数
-
- 返回
- 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_ary | info of cpus |
[in] | *cpu_cnt | num 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
- 参数
-
- 返回
- 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] | range | random 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] | describe | point 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
- 参数
-
- 返回
- 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
- 参数
-
- 返回
- 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.
- 参数
-
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h