User`s manual

Dynamic C Users Manual digi.com 207
interrupt_vector (cont’d)
As demonstrated in DC 9.52's standard samples that conditionally use the interrupt_vector key-
word, the correct usage is as follows:
nodebug root interrupt void pwm_isr(){
// example code does not do anything
}
nodebug root interrupt void ic_isr(){
// example code does not do anything
}
main(){
#if __SEPARATE_INST_DATA__ && (_RK_FIXED_VECTORS)
interrupt_vector inputcap_intvec ic_isr;
interrupt_vector pwm_intvec pwm_isr;
#else
SetVectIntern(0x1A, ic_isr); // set up ISR
SetVectIntern(0x17, pwm_isr); // set up ISR
#endif
printf("ISR's setup correctly\n");
}