This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Porting "flash_fstorage" to BLE applications example code

Hello,

I am using Seeger for flashing Code and Debugging. I ported code from “flash_fstorage” example code to “ble_app_blinky”.

In “ble_app_blinky”, as part of wait_for_flash_ready(), I replaced power_manage() to idle_state_handle(). Is this fine. Whether both are same ?

void wait_for_flash_ready(nrf_fstorage_t const * p_fstorage)
{
    /* While fstorage is busy, sleep and wait for an event. */
    while (nrf_fstorage_is_busy(p_fstorage))
    {
        idle_state_handle();
       //power_manage();
    }
}

Thanks & Regards

Vishnu Beema

Parents
  • Hi Vishnu

    You are correct, sorry about the confusion. You should be able to copy the power_manage function etc. from the FDS example as long as you remember to add all the necessary .h and .c files to your new project. I think you should be able to replace them with idle_state_handle() if you'd rather do that, so it's entirely up to you to be honest.

    Best regards,

    Simon

Reply
  • Hi Vishnu

    You are correct, sorry about the confusion. You should be able to copy the power_manage function etc. from the FDS example as long as you remember to add all the necessary .h and .c files to your new project. I think you should be able to replace them with idle_state_handle() if you'd rather do that, so it's entirely up to you to be honest.

    Best regards,

    Simon

Children
Related