- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to add a test that force the system into deep sleep mode forever, but not sure if CyGlobalIntDisable disable the different wakeup causes from deep sleep?
The code is only for measurement purpose and would require a reset/power cycle.
CySysWdtUnlock();
CySysWdtDisable(CY_SYS_WDT_COUNTER0_MASK | CY_SYS_WDT_COUNTER1_MASK | CY_SYS_WDT_COUNTER2_MASK);
CySysWdtLock();
uint8_t isr_stat = CyEnterCriticalSection();
CyGlobalIntDisable;
CySysClkWriteHfclkDirect(CY_SYS_CLK_HFCLK_IMO);
CySysClkEcoStop();
CySysPmDeepSleep();
CyExitCriticalSection(isr_stat);
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, CyGlobalIntDisable will disable all the wakeup interrupt causes.
Your code should work fine. Please attach your project if you face any issues and let us know the problems faced.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, CyGlobalIntDisable will disable all the wakeup interrupt causes.
Your code should work fine. Please attach your project if you face any issues and let us know the problems faced.
Thanks,
Shanmathi