Dear all,
I am testing my own kernel for MSP430. I am measuring highest frequency for square signal that MSP430 with my kernel can repeat on its output. Square signal is connected to one of the interrupt pins, so on every high to low or low to high signal edge port interrupt is generated. In port ISR I am releasing semaphore on which my task is blocked. After task is unblocked its job is to toggle one pin declared as output. So i want to found out what is the highest frequency when no pulsed is missed to be repeated on the output pin.
While i was doing my test I found out that there are frequencies where stack overflow appears(everz task has its stack where context is saved). The thing is that when my Scheduler switches context back to idle task, because interrupt rate is so high, it never have a chance to pop PC.
That part of code looks like this