Hi,all.i want to release wakeup button after wakeup my device and change the button's function.i used 8.0 sdk.how to do that?Thanks!
Hi,all.i want to release wakeup button after wakeup my device and change the button's function.i used 8.0 sdk.how to do that?Thanks!
Hi,
See the tutorial on the Board Support Package. When you enter sleep mode you prepare a wakeup button like this
err_code = bsp_wakeup_buttons_set((1 << WAKEUP_BUTTON_ID));
APP_ERROR_CHECK(err_code);
When you go to sleep the system will now reset when your button is pressed. This means that your button will do what it was configured to do in your init functions.
Best regards,
Øyvind
Sorry,i can't understand what you say.my device wake up once only.when it waked up,i write a flag to flash.when flag set,it skip step " sleep_mode_enter( ) " always.i can't understand the flow that you said.why the configure about wakeup button will remove after reset?
Sorry,i can't understand what you say.my device wake up once only.when it waked up,i write a flag to flash.when flag set,it skip step " sleep_mode_enter( ) " always.i can't understand the flow that you said.why the configure about wakeup button will remove after reset?