Skip to content

Sleeping with interrupts disabled? #849

Open
@Miceuz

Description

@Miceuz

I am using LMIC on nRF52 platform. I have successfully ported hal.cpp and now I want to switch to using interrupts. Mainly I want to sleep while waiting for RX as that's the majority of time the library spends busy-waiting. I have started by looking around the code base and noticed this place:

hal_sleep(); // wake by irq (timer already restarted)

System is being put to sleep with interrupts disabled. If so, how will it wake-up from the sleep? Isn't this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions