MCC interrupt callback code
MCC seems to be inconsistent in the code that it generates for handling interrupts for different peripherals.
I plan on using the ADC interrupt, and wondering where to place my own ISR code since I don't want to modify any MCC generated files if I can avoid it.
In the Developer Help, in the section on implementing MCC interrupts, it uses timer1 as an example, where you can register a callback using a generated function called TMR1_SetInterruptHandler(myTimerISR) in your main.c file. This seems like a good way of doing things to me.
I expected something similar for the ADC, but no such code is generated. There seems to be no ADC_SetInterruptHandler() or method to register a callback. The way I see it, I either have to modify the ADC_ISR() function in adc.c directly, or the INTERRUPT_InterruptManager() function in interrupt_manager.c to call my own function instead. Both of these are generated files which I don't want to touch. I also checked the comparitor and it is like the ADC.
Why is timer interrupt code generated different to other peripherals? Would it not be a good idea to be able to register a callback for all peripherals in the same way?
I am using the online MPLAB Xpress with a PIC16F18345 Xpress evaluation board.