Sleep manager.
Copyright (c) 2010-2020 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | sleepmgr_enter_sleep (void) |
Go to sleep in the deepest allowed mode. More... | |
static enum sleepmgr_mode | sleepmgr_get_sleep_mode (void) |
Retrieves the deepest allowable sleep mode. More... | |
static void | sleepmgr_init (void) |
Initialize the lock counts. More... | |
static void | sleepmgr_lock_mode (enum sleepmgr_mode mode) |
Increase lock count for a sleep mode. More... | |
static void | sleepmgr_unlock_mode (enum sleepmgr_mode mode) |
Decrease lock count for a sleep mode. More... | |