Hi,
I'm using the function "Power_shutdown(0, 7200000)" to go to hibernation and wake up automatically after 2 hrs and it works well.
Then how can I put the device into hibernation until I push/pull the wake-up GPIO?
Check.1
I tried to put 0 for time parameter (Power_shutdown(0, 0)) but the device wakes up after about a few hrs.
Check.2
In the definition of this function (Power.h), the second parameter looks clear : time in milliseconds and not supported on all families.
But the first parameter is not clear as it says "device-specific shutdown state" and I could't find device-specific definitions.
I've read the link below and still not clear.
So my questions are
Q1. What is correct way to put the device into permanent hibernation?
Q2. Where can I find device-specific definitions for the first parameter?
Q3. In the "out_of_box" example, I can find powerShutdown(MAX_INT) which means Power_shutdown(?, 7FFFFFFF).
But the definition in Power.h defines the type of the second parameter as uint_32 which can max out to FFFFFFFF.
What does MAX_INT(7FFFFFFF) means?
Thanks,
Yun