>Making it general is presumably as simple as having two functions and >scattering those throughout the code where needed: > >oldstate = maskinterrupts() -- returns previous GIE value >... >restoreinterrupts(oldstate) -- puts it back. > >var bit GIE_savestate GIE_savestate=INTCON_GIE INTCON_GIE=false ... INTCON_GIE=GIE_savestate Well, without the lib it's one line more. Is it worth the effort? Your decision. Greets, Kiste -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
- [jallib] Advice regarding variable access from interrupt ... Alun Jones
- Re: [jallib] Advice regarding variable access from i... Oliver Seitz
- Re: [jallib] Advice regarding variable access fr... Alun Jones
- WG: [jallib] Advice regarding variable acces... Oliver Seitz
- Fw: [jallib] Advice regarding variable access from i... Alun
- Re: Fw: [jallib] Advice regarding variable acces... Karin Willers
- Re: Fw: [jallib] Advice regarding variable a... Alun Jones
- Re: Fw: [jallib] Advice regarding variab... Oliver Seitz
- Re: Fw: [jallib] Advice regarding v... Alun Jones
- Re: Fw: [jallib] Advice regardi... Oliver Seitz
- Re: Fw: [jallib] Advice reg... Oliver Seitz
- Re: Fw: [jallib] Advice reg... Sebastien Lelong
- Re: Fw: [jallib] Advice reg... Joep Suijs
