Create tasks of different priorities using task manager

Hi,

I am beginner with NRF52840. I want to create a task scheduler using multiple tasks with different level of priorities that is low, medium and high. I am using SDK 17.1.

Please let me know if there is any example available and kindly provide the sample code.

Thanks

Mehul

Parents Reply Children
  • Hi Einar,

    Thanks for the reply.

    We have checked the console ble example for task manager. But that example only contains task_manager_start() to start the idle task. We need to know how to use task_create() with multiple task creation and its task handling function.

    Please provide the sample code.

    Thanks

    Mehul

  • Hi,

    The task_manager library is an experimental library which is only used in an experimental sample (examples/ble_peripheral/experimental/ble_app_cli/). That shows how to crate tasks using task_create() etc indireclty by calling nrf_cli_task_create() which calls task_create(). I do not have any other code to share, and it is not widely used (in fact, I have never seen it used before other than that example).

    If you want something more prooven while using the nRF5 SDK I would look at FreeRTOS.

Related