Tool/software: TI-RTOS
Hello,
I am working on a CC2640R2F custom board powered by an Energy Harvesting generator. The generator is not running all the time, and when it isn't running the device runs off a buffer capacitor. When the generator is off, I would like to enter the Standby power mode. When it is turned back on, the application needs to return to active mode. This is detected via a pin interrupt on a pin with PINCC26XX_WAKEUP_NEGEDGE enabled.
For entering standby mode I need to release all dependencies on the peripherals (Specifically, PowerCC26XX_PERIPH_GPIO). I saw that Power_setDependency(PowerCC26XX_PERIPH_GPIO) is called within the PIN_init() function. However, PIN_close() does not release the dependency again.
My question is: how do I make sure this dependency is released while still being able to wake up the application via the wakeup interrupt?
Thanks for your help
-Luzian