PMM Files

Table 1. PMM Files

Files

Description

pmm/inc/pmm.h

This file contains the public API for the Power Management Module. This needs to be included by the application if power management is needed.

pmm/src/pmm.c

This file contains the implementation of power management that is the conditions for entering to sleep, calculating the sleep time, configuring and backing up the timers and so on.

hal/inc/sleep_timer.h

This file contains the APIs for the sleep timer. It is used by the PMM to keep track of the sleep duration and also to wake-up the device in timed sleep scenarios.

hal/src/sleep_timer/sam0/sleep_timer.c

This file contains the implementation of sleep timer. Currently, sleep timer uses RTC internally.

hal/inc/sleep.h

This file contains the API to switch the MCU to desired Sleep mode.

hal/src/sleep/sam0/src/sleep.c

This file contains the implementation to switch the MCU to Sleep mode. Currently, the SAM R34 supports the STANDBY and BACKUP mode.