- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to disable all interrupts except one like this:
CyGlobalIntDisable; // disable all interrutpts
CySysWdtEnable(CY_SYS_WDT_COUNTER2_MASK); // enable just this one.
is there a better way?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using a Global Signal Reference component. This should fire by WDC and leave deep sleep
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am afraid that this will not work.
CyGlobalIntDisable will seta bit in the processor status register to prevent any interrupt from firing (except NMI)
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks !
Is there another disable all interrupts function i can use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Afaik there isn't. EnterCriticalSection() and ExitCriticalSection do the same.
Would be better when you tell a bit more what your problem is.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to disable all interrupts before sleep, and wake up from only the WDT2 interrupt and nothing else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using a Global Signal Reference component. This should fire by WDC and leave deep sleep
Bob