您的位置:首页 > 其它

[MTK_Code]EINT外部中断学习

2011-11-05 11:52 423 查看
* 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: