Using unused interrupt vectors
Is it ok to use interrupt vectors which are 'reserved' inside or even beyond the vector table?
We need to put an RTOS semaphore from an interrupt with higher priority than kernel scheduler interrupt (which is forbidden). Currently we use an interrupt vector of an unused peripheral which we set to the same IPL as the kernel and trigger it by software from the high priority interrupt. Service routine of the low priority interrupt then puts the semaphore. Setting both to the same IPL is not a solution because in high priority interrupt we need to do some tasks as soon as possible and then eventually put the semaphore.
But can we use ANY interrupt vector, even if it's 'reserved'? Will NVIC service such interrupt?
Can we extend the interrupt vector table by one item and use that vector?
Or is there any cleaner way of doing that? Both PendSV and SVC (which would be otherwise pefect for that application) are taken by RTOS.
