does anyone know how to detect whether the actual context is interrupt oder task-context ?
I want to implement an RTOS-wrapper and only want to have one function for semsignal and want to detect in this function if the actual context is interrupt or task-context to call the appropriate function !
that would depend on which port you are using
the easiest way would be to increment a var on entry to interrupt and decrement it again on exit. When the var is zero the context is task