[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
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.