Wakeup and sleep eventHandler

2 posts / 0 new
Last post
auzzz
Offline
Last seen:3 months 2 weeks ago
加入:2016-06-20 10:43
Wakeup and sleep eventHandler

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:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi auzzz,

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