Hi , dialog
1. After the device entered extended sleep mode with using "pm_set_sleep_mode(pm_mode_extended_sleep);" , can we use peripheral (i2c , spi , uart..)to operate external sensor ? and what should pay attention to ?
2. If the device is already in extended sleep mode , what will happen if we use "pm_set_sleep_mode(pm_mode_extended_sleep);" again ? or use "pm_set_sleep_mode(pm_mode_active) while in active mode
Device:
Hi guixiang,
1) In order to use the peripherals the device has to be active, while sleeping the device switches off the peripherals, that means that you can program the device to wake up via a timer or an external interrupt and then access the peripheral itself. This should be done via the adapters and not the Low Level drivers that are provided with the SDK.
2) You will just reset the sleep status in the same status as before, i suppose that there will be no difference in the behaviour of the application if you just set the same sleep status.
Thanks MT_dialog