Add cal_isr() support
This commit is contained in:
parent
6c93b8fb0b
commit
2f52fdd156
2 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,8 @@ extern void kbi5_isr(void) __attribute__((weak));
|
|||
extern void kbi6_isr(void) __attribute__((weak));
|
||||
extern void kbi7_isr(void) __attribute__((weak));
|
||||
|
||||
extern void cal_isr(void) __attribute__((weak));
|
||||
|
||||
extern void uart1_isr(void) __attribute__((weak));
|
||||
|
||||
extern void maca_isr(void) __attribute__((weak));
|
||||
|
|
|
@ -65,6 +65,12 @@ void irq(void)
|
|||
if(kbi_evnt(5) && (kbi5_isr != 0)) { kbi5_isr(); }
|
||||
if(kbi_evnt(6) && (kbi6_isr != 0)) { kbi6_isr(); }
|
||||
if(kbi_evnt(7) && (kbi7_isr != 0)) { kbi7_isr(); }
|
||||
|
||||
if (CRM.STATUSbits.CAL_DONE && CRM.CAL_CNTLbits.CAL_IEN && cal_isr)
|
||||
{
|
||||
CRM.STATUSbits.CAL_DONE = 0;
|
||||
cal_isr();
|
||||
}
|
||||
}
|
||||
|
||||
*INTFRC = 0; /* stop forcing interrupts */
|
||||
|
|
Loading…
Reference in a new issue