commit | 7c7611d17dbd5a200c9253357f8ab7183795deb8 | [log] [tgz] |
---|---|---|
author | Dino Li <Dino.Li@ite.com.tw> | Tue Jun 28 18:12:05 2022 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Jul 01 11:36:55 2022 +0200 |
tree | 4f7025748a5fae7449db94c480a7b63f21c5cff2 | |
parent | bf37acc3c04e7e6a391153fbfb4bfe9ed00b5ec1 [diff] |
it8xxx2: intc: Look for pending interrupt The AIVECT (All Interrupt Vector Register) register provides us a quick way to determine SOC interrupt number. But sometimes we get interrupt number 0 from the register and caused assertion of unhandled interrupt. To avoid the assertion, we look for all ISRs (Interrupt Status Register) and IERs (Interrupt Enable Register) to find the highest priority pending interrupt and return it to caller. Signed-off-by: Dino Li <Dino.Li@ite.com.tw>