Page 1 of 1

global interrupt

Posted: Tue Oct 06, 2020 5:29 pm
by eng.m_mahmoud
Hello,

I am asking about the functions which enable and disable the global interrupt, or what is the address of the register which includes this bit(and which bit).

this required for logging critical section.

Thanks

Re: global interrupt

Posted: Tue Oct 06, 2020 10:30 pm
by PeterR
Global interrupt?
What does that mean? GoF epilogue available ;) ?
If you don't mind; sounds like an exam question ;)

Re: global interrupt

Posted: Wed Oct 07, 2020 6:50 am
by ESP_Sprite
It's a bit more complicated than a 'global interrupt' bit... can I ask what you're asking this for?

Re: global interrupt

Posted: Wed Oct 07, 2020 9:26 am
by PeterR
There are few good reasons to disable all interrupts & a lot of bad ones. So its important to understand what you want to achieve.
For what its worth viewtopic.php?t=10006 discusses tight loops but 'beware here be dragons' (I also wonder if the RMT module would have been a better solution).
So it very much depends what you want to achieve!