|
TuyaOS
|
Common process - adpater some api which provide by OS 更多...
#include "tuya_cloud_types.h"

宏定义 | |
| #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
| #define TAL_ENTER_CRITICAL | ( | ) |
enter critical macro
| VOID_T tal_system_delay | ( | UINT_T | time_ms | ) |
system delay
| [in] | time_ms | time in MS |
| UINT_T tal_system_enter_critical | ( | VOID_T | ) |
system enter critical
| [in] | none |
| VOID_T tal_system_exit_critical | ( | UINT_T | irq_mask | ) |
system exit critical
| [in] | irq_mask | irq mask |
| OPERATE_RET tal_system_get_cpu_info | ( | TUYA_CPU_INFO_T ** | cpu_ary, |
| INT_T * | cpu_cnt | ||
| ) |
get system cpu info
| [in] | cpu_ary | info of cpus |
| [in] | cpu_cnt | num of cpu |
| INT_T tal_system_get_free_heap_size | ( | VOID_T | ) |
Get system free heap size
| none |
| SYS_TIME_T tal_system_get_millisecond | ( | VOID_T | ) |
Get system millisecond
| none |
| INT_T tal_system_get_random | ( | UINT_T | range | ) |
Get system random data
| [in] | range | random from 0 to range |
| TUYA_RESET_REASON_E tal_system_get_reset_reason | ( | CHAR_T ** | describe | ) |
Get system reset reason
| [in] | describe | point to reset reason describe |
| SYS_TICK_T tal_system_get_tick_count | ( | VOID_T | ) |
Get system tick count
| none |
| VOID_T tal_system_reset | ( | VOID_T | ) |
system reset
| none |
| VOID_T tal_system_sleep | ( | UINT_T | time_ms | ) |
System sleep
| [in] | time_ms | time in MS |