- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Cy8c4247,is there the API to get wakeup source when MCU was waked up from Deepsleep?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not specifically, the interrupt that woke up the module will fire when it wakes up, thus any interrupts that can wake the unit up could have fired directly from sleep power modes. You could easily make a function/api that checks the interrupt sources for the currently active one upon wake-up however. It depends on which hardware you have enabled as well, as only enabled interrupt sources will/can fire. GPIO, SPI, I2C, BLE, WDT, etc.
There is an API for reset reason: CySysPmGetResetReason()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not specifically, the interrupt that woke up the module will fire when it wakes up, thus any interrupts that can wake the unit up could have fired directly from sleep power modes. You could easily make a function/api that checks the interrupt sources for the currently active one upon wake-up however. It depends on which hardware you have enabled as well, as only enabled interrupt sources will/can fire. GPIO, SPI, I2C, BLE, WDT, etc.
There is an API for reset reason: CySysPmGetResetReason()