OSAL
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[+TI+CC2530]]
&color(red){※This article is based on ZigBee Stack 2.51.a};
#contents
* 概要 [#aa1d408f]
OSAL为:Operating System Abstraction Layer,即操作系统抽...
OSAL概念是由TI公司在ZIGBEE协议栈引入,他的意思是”模拟操作...
#codeprettify{{
Osal主要提供如下功能:任务注册、任务间同步互斥、中断处理、...
}}
* 常用API [#s19b25da]
** osal_start_timerEx() [#p278f854]
开启定时器计时。用来周期性产生某一事件
#codeprettify{{
/********************************************************...
* @fn osal_start_timerEx
*
* @brief
*
* This function is called to start a timer to expire i...
* When the timer expires, the calling task will get th...
*
* @param uint8 taskID - task id to set timer for
* @param uint16 event_id - event to be notified with
* @param UNINT16 timeout_value - in milliseconds.
*
* @return SUCCESS, or NO_TIMER_AVAIL.
*/
uint8 osal_start_timerEx( uint8 taskID, uint16 event_id, ...
}}
** osal_start_reload_timer() [#e6713ff6]
自动加载时间点和超时值。
#codeprettify{{
/********************************************************...
* @fn osal_start_reload_timer
*
* @brief
*
* This function is called to start a timer to expire i...
* When the timer expires, the calling task will get th...
* and the timer will be reloaded with the timeout value.
*
* @param uint8 taskID - task id to set timer for
* @param uint16 event_id - event to be notified with
* @param UNINT16 timeout_value - in milliseconds.
*
* @return SUCCESS, or NO_TIMER_AVAIL.
*/
uint8 osal_start_reload_timer( uint8 taskID, uint16 even...
}}
osal_start_reload_timer()函数相对于osal_start_timerEx()函...
#codeprettify{{
/* 装载时间重新装载值 */
newTimer->reloadTimeout = timeout_value;
}}
** osal_clear_event [#q3e64762]
清除事件。
#codeprettify{{
uint8 osal_clear_event( uint8 task_id, uint16 event_flag );
}}
#hr();
コメント:
#comment_kcaptcha
終了行:
[[+TI+CC2530]]
&color(red){※This article is based on ZigBee Stack 2.51.a};
#contents
* 概要 [#aa1d408f]
OSAL为:Operating System Abstraction Layer,即操作系统抽...
OSAL概念是由TI公司在ZIGBEE协议栈引入,他的意思是”模拟操作...
#codeprettify{{
Osal主要提供如下功能:任务注册、任务间同步互斥、中断处理、...
}}
* 常用API [#s19b25da]
** osal_start_timerEx() [#p278f854]
开启定时器计时。用来周期性产生某一事件
#codeprettify{{
/********************************************************...
* @fn osal_start_timerEx
*
* @brief
*
* This function is called to start a timer to expire i...
* When the timer expires, the calling task will get th...
*
* @param uint8 taskID - task id to set timer for
* @param uint16 event_id - event to be notified with
* @param UNINT16 timeout_value - in milliseconds.
*
* @return SUCCESS, or NO_TIMER_AVAIL.
*/
uint8 osal_start_timerEx( uint8 taskID, uint16 event_id, ...
}}
** osal_start_reload_timer() [#e6713ff6]
自动加载时间点和超时值。
#codeprettify{{
/********************************************************...
* @fn osal_start_reload_timer
*
* @brief
*
* This function is called to start a timer to expire i...
* When the timer expires, the calling task will get th...
* and the timer will be reloaded with the timeout value.
*
* @param uint8 taskID - task id to set timer for
* @param uint16 event_id - event to be notified with
* @param UNINT16 timeout_value - in milliseconds.
*
* @return SUCCESS, or NO_TIMER_AVAIL.
*/
uint8 osal_start_reload_timer( uint8 taskID, uint16 even...
}}
osal_start_reload_timer()函数相对于osal_start_timerEx()函...
#codeprettify{{
/* 装载时间重新装载值 */
newTimer->reloadTimeout = timeout_value;
}}
** osal_clear_event [#q3e64762]
清除事件。
#codeprettify{{
uint8 osal_clear_event( uint8 task_id, uint16 event_flag );
}}
#hr();
コメント:
#comment_kcaptcha
ページ名: