Is it preferable to use TimerIntRegister for narrow and wide timers rather than name the ISR in the vector table?
JH
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is it preferable to use TimerIntRegister for narrow and wide timers rather than name the ISR in the vector table?
JH
Hello John,
I wouldn't say there is a specific preference. Both are perfectly viable. It depends what processes are preferred really. Some users rather not update an extra file or would prefer to explicitly have the ISR link established via code which is a little more portable as well. I personally always manually add to startup_ccs.c myself. If its unclear how to map it into the startup file then by all means use TimerIntRegister if that works smoother for you.
Best Regards,
Ralph Jacobi
Either if fine but if I list them in the vector table I often get reminded that I did not "extern" them.
thanks
Hi John,
Yes you need to add the function into the startup_ccs.c file as an extern above the vector table such as:
extern void HibernateHandler(void);
So each new entry into startup_ccs.c requires two adjustments: changing one line of code and adding one line of code.
Best Regards,
Ralph Jacobi