how to use RTC for RTOS and app timer simultaneously

Hi Team ,

         In my application , i am using RTC1 for RTOS and RTC2 for Running a time calibration andRTC0 for Softdevice but  parallelly i  need to add Lbs service which includes app timer create in con_params init .

So here how to handle RTC ?

Thanks,

Sowmiya

  • Hi,

    app_timer should not be required by the LBS service itself, although the conn_params module is used in the ble_app_blinky example. Do you require the conn_params module in your application, or can you handle this manually in your application?

    I'm not sure how feasible it would be to share one RTC instance between RTOS and app_timer. Most likely, the RTOS has some timing functions similar to app_timer functionality, which you can use in conn_params module to replace the app_timer functions?

    Best regards,
    Jørgen

Related