1 Reply Latest reply on Mar 1, 2018 8:11 AM by epr_1639216

    How to get wakeup source


      In Cy8c4247,is there the API to get wakeup source when MCU was waked up from Deepsleep?

        • 1. Re: How to get wakeup source

          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()