Set software interrupt with its own priority?
MCU STM32F765GZ
My Problem:
EXTI_LINE_0-4 has separate IRQ handlers but al are occupied.
EXTI_LINE_5-9 share the same IRQhandler and also priority. pin 6 is needed with prio 1(brownout mon)
EXTI_LINE_10-15 share the same IRQhandler and also priority. pin 12 is needed with prio 2(paperclip btn)
I need an interrupt on pin 5 with a low prio(10)
Solution: keep EXTI_LINE_5-9 with prio 1. Let handler find out if the interrupt was for pin 5, and if so trigger a low prio software interrupt which in turn wil execute my low prio code.
Question: I find the documentation here to be confusing. How can I set up an software interrupt with its own priority to handle this? I dont want to change priority of something else here. Is it possible for the sw interrupt to have its own handler? how?
thank you in advance!