Button turn on wake up NRF51

Firmware/software/electronics/mechanics
Post Reply
lzy
Beginner
Posts: 3
Joined: Sat Jul 23, 2016 9:00 am

Button turn on wake up NRF51

Post by lzy »

I want to analysis the "crazyflie2_mbs_master"code,and I can not find the code that button on to wake up the NRF51.Who can tell me?thanks. :)
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Button turn on wake up NRF51

Post by arnaud »

Hi,

The CPU goes in STOP mode when sleeping which means that pressing the button wakes it up from reset and the _MBS firmware is then started in main() at startup and then wait to see for how long the button stays pressed. The code to setup the STOP mode and the wake-up pin is part of the crazyflie2-nrf-firmware project.

/Arnaud
Post Reply