Other Parts Discussed in Thread: BLE-STACK
What needs to be done to put the cc2640 into sleep mode after PIN_init() is called in main() in simple_central sample program?
Is it possible to call the routine Power_sleep() at this point?
We're trying to reduce power consumption as much as possible before going into shutdown.
We need to be able to start a timer, put the chip into sleep mode, then after the time expires, put the chip into shutdown mode.
We're successful at putting the chip into shutdown mode at this point, however, we have 3 more steps to complete our objective.
1) Start a timer - we would like to kick of a timer very early on in the main() function (after PIN_init and possibly after
calling the power policy).
2) Put the chip in sleep mode - the function Power_sleep() says 'This function must be called with interrupts disabled, and should not be called directly by the application'. However, I'm wondering whether we could violate this requirement if we are in main before calling iCall and before starting the BIOS.
3) After the timer expires, bring the chip out of sleep mode.
The reason we're wanting to do this is so we can reduce power consumption during the period of time that the other chips on the board are powering up.
Regards,
John