Hi Dialog,
We have a requirement of setting peripheral to standby mode before entering sleep, and when wake up, read from I2C peripheral.
Where should I place application codes for these purpose? Is there any sample code for wakeup and sleep event handler?
Device:
Hi auzzz,
There is no specific callback indication hook that the device is going to sleep so that you can place code, you can send the power off indication as soon as the interaction with the peripheral is finished. For wake up your peripheral you can use the again the periph_init() function that i ve mentioned in the previous post. In general the sensors are powered off - suspended and powered on - resumed whenever they are needed and not during wakeup and sleep of the 68x, that is the approach that it is normally used.
Thanks MT_dialog