2.75 Power, Clock and Reset (PCR) Module

The PCR module provides control of peripheral clocks, ability to reset peripherals and control of power to the peripherals.

Library Interface

PCR peripheral library provides the following interfaces:

Functions

NameDescription
PCR_InitializeInitializes the PCR module based on MCC configuration
PCR_PeripheralResetLockLocks the peripheral reset enable register
PCR_PeripheralResetUnLockUnlocks the peripheral reset enable register
PCR_PrivilegeEnLockLocks privilege enable registers
PCR_PrivilegeEnUnLockUn-locks privilege enable registers
PCR_PrivilegeDisablexEnables access to the given peripheral block in all modes
PCR_PrivilegeEnablexEnables access to the given peripheral block in all modes
PCR_ResetEnablex Resets the given peripheral
PCR_SleepDisablexBrings the module out of sleep mode and is free to use the clock as necessary
PCR_SleepEnablexThe given peripheral block is commanded to enter into sleep mode at the next available moment

Data types and constants

NameTypeDescription
PCR_SLEEP_ENxEnumThis enum is used to specify the peripheral block for which sleep mode needs to be enabled/disabled using the PCR_SleepEnablex()/PCR_SleepDisablex() API
PCR_RESET_ENxEnumThis enum is used to specify the peripheral block for which reset needs to be enabled using the PCR_ResetEnablex() API
PCR_PRIV_ENxEnumThis enum is used to specify the peripheral block for which privilege access is to be enabled/disabled using the PCR_PrivilegeEnablex()/PCR_PrivilegeDisablex() API
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.