[SOLVED] Critical region

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Critical region

    Hi,
    I have an nrf52840 based project , in my application I have a short duration ( ~100ms ) that I need radio to be quiet ( no RX\TX ).
    Can I use "OS_TASK_EnterRegion " for that ? Does this function has any effect on BLE Stack ?
    ( the alternative is to use nordic timeslot api )
    Thanks,
    Ran
  • Hi Ran,

    OS_TASK_EnterRegion()/OS_TASK_LeaveRegion() disables preemptive task switches.
    Whether this has any effect on the BLE stack depends on your application and the BLE stack itself with which I am not that familiar with.

    Is the BLE communication handled in a task or in interrupts?

    Best regards,
    Til