提供AliOS Things系统控制功能的基础API.
◆ AOS_DEFAULT_APP_PRI
#define AOS_DEFAULT_APP_PRI 32 |
任务默认优先级,当调用aos_task_new()创建任务时被内核用来设置任务优先级
在文件 kernel.h 第 42 行定义.
◆ AOS_NO_WAIT
◆ AOS_WAIT_FOREVER
#define AOS_WAIT_FOREVER 0xffffffffu |
◆ SYSINFO_KERNEL_VERSION
#define SYSINFO_KERNEL_VERSION "AOS-R-3.3.0" |
◆ aos_hdl_t
◆ aos_status_t
◆ aos_get_hz()
int32_t aos_get_hz |
( |
void |
| ) |
|
Get HZ(ticks per second).
- 返回
- RHINO_CONFIG_TICKS_PER_SECOND.
◆ aos_init()
◆ aos_rand()
int32_t aos_rand |
( |
void |
| ) |
|
rand function.
- 返回
- random value.
◆ aos_reboot()
◆ aos_srand()
void aos_srand |
( |
uint32_t |
seed | ) |
|
srand function.
- 参数
-
[in] | seed | The seed number to use to generate the random sequence. |
- 返回
- none.
◆ aos_start()
◆ aos_version_str_get()
Get kernel version string.
- 参数
-
[in] | len | the size of the @buf in bytes |
[out] | buf | buffer pointer to copy kernel version string |
- 返回
- On succuess, return the buf pointer, else return NULL.
- 注解
- If the actual kernel version string length is larger than the buffer len-1, than only len-1 bytes are copied into the buffer, and set the last byte of the buf to zero. Else, copy the whole kernel version string into the buf.