Skip to content

ztimer and pm_layered #13580

@jue89

Description

@jue89

Description

I would like to use ztimer with a periph_timer and a periph_rtt in a low power application. The application wakes up in a fixed interval. To save energy, I have to disable periph_timer when the board is sleeping. How do achieve this with ztimer?

My basic idea is to block the power state that puts the device into deep sleep if at least one XTIMER_USEC clock is running.

Does ztimer know, how many timers are currently running on a specific clock?

Would it be a good idea to extend ztimer_clock_t with callbacks that are called if the number of the clock's user changes from 0 to 1 or from 1 to 0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions