[MTK_Code]EINT外部中断学习

 

* DESCRIPTION
*   This function implements registration of external interrupts
*
* CALLS
*
* PARAMETERS
*  eintno            -     External interrupt vector number(外部中断号)
*  Dbounce_En        -     Debounce control enable(判断当前是否可用)
*  ACT_Polarity      -     Interrupt polarity(设置高电平触发还是低电平触发)
*  reg_hisr          -     Registered hisr(响应函数)
*  auto_umask        -     A flag instruct the systerm to do unmask after
*                          invoking the registered HISR

 

void EINT_Registration(kal_uint8 eintno, kal_bool Dbounce_En, kal_bool ACT_Polarity, \
                       void (reg_hisr)(void), kal_bool auto_umask)
 

Example:

EINT_Registration(AUX_EINT_NO,KAL_TRUE,aux_state,AUX_EINT_HISR, KAL_TRUE);

aux_state :默认是Level_low


posted @ 2011-03-31 10:21  Nigel-Wen  阅读(3761)  评论(0编辑  收藏  举报