Use components from ISR - best practice | Cypress Semiconductor
Use components from ISR - best practice
I have bought CY8CKIT-059 kit recently, its my first Cypress board. In a program, I need to access components defined in TopDesign.cysch from an ISR routine.
I have defined a function (I don't remember in what .h file, the definition got deleted), placed its code to main.c file, and I am calling it from ISR defined in generated source file isr_updatereg.c .
It is working how I need it, but as the function definition got deleted from .h file, I feel that I am violating some best-practice rules, or similar. How would you use components from ISR?
I have attached related files in a ZIP archive.