Hi all,
I use QN9080-001-M17 based custom board.
It has one button. When button is pressed it send some data to its BLE peer.
I want it to go into power down mode (including BLE) to save buttery.
At this point, seems that when I press the button it activates the GPIO isr instead of calling
the wake up routine (BOARD_WakeupRestore).
My questions are:
1. Is it possible to use the same GPIO where button is connected as a wake up source?
2. How can I be sure BLE is ready after after it came out from power down?
Thank you
Hi Alex,
You can have the same GPIO as a wake-up source and as ISR.
Note: Before going to sleep you must change the alternative in that specific pin. The gpio should be wake up source.
After the wake-up event, you should change the alternative as an interrupt.
2. How can I be sure BLE is ready after it came out from power down?
Look at the Heart Rate Sensor
Regards,
Mario