2008-11-26 03:10 AM
interrupt register
2011-05-17 03:54 AM
Hello,
I was wondering if there is a way to know which interrupt is enabled or not. For example, I enable a few interrupt such as USART1, CAN_RX, ... using the NVIC_Init from the ST library. After that, I would like something returning a mask of interrupt enabled or not. I haven't seen a ST library function having this possibility. I was thinking of reading the register, but I haven't found the address of this register in any document. By debugging the library I saw that the register modified is at the address 0xE000E000. But this one is in a reserved section refering to the memory map in document RM0008. Does anybody have an idea or know how to check all interrupt enabled? Thanks in advance.2011-05-17 03:54 AM
I've not tried this but i'd read the interrupt set enable registers - see the Cortex M3 Technical Reference:8.2.2
2011-05-17 03:54 AM
Thank you Giles.
I can read the register at the address 0xE000E100. It gives me back properly which interrupt is enabled.