* 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


相关文章:

  • 2021-11-24
  • 2021-09-25
  • 2021-04-26
  • 2021-05-07
  • 2021-08-01
  • 2021-09-15
  • 2021-12-23
  • 2021-10-15
猜你喜欢
  • 2021-12-31
  • 2021-04-13
  • 2021-04-06
  • 2022-12-23
  • 2021-12-09
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案