www.ti.com
PRCM APIs
527
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Power, Reset, and Clock Management
Hibernate wake-up sources are configured using the following APIs:
● void PRCMHibernateWakeupSourceEnable(unsigned long ulHIBWakupSrc)
Description: This function enables the specified HIB wake-up sources.
Parameter: ulHIBWakupSrc: Bit-packed representation of valid wake-up sources. ulHIBWakupSrc is
bitwise or one or more of the following:
• PRCM_HIB_SLOW_CLK_CTR: Slow clock counter
• PRCM_HIB_GPIO2: GPIO2
• PRCM_HIB_GPIO4: GPIO4
• PRCM_HIB_GPIO13: GPIO13
• PRCM_HIB_GPIO17: GPIO17
• PRCM_HIB_GPIO11: GPIO11
• PRCM_HIB_GPIO24: GPIO24
Return: None
● void PRCMHibernateWakeupSourceDisable(unsigned long ulHIBWakupSrc)
Description: This function disables the specified HIB wake-up sources.
Parameter: ulHIBWakupSrc: Bit-packed representation of valid wake-up sources. ulHIBWakupSrc is
bitwise or one or more of the following:
• PRCM_HIB_SLOW_CLK_CTR: Slow clock counter
• PRCM_HIB_GPIO2: GPIO2
• PRCM_HIB_GPIO4: GPIO4
• PRCM_HIB_GPIO13: GPIO13
• PRCM_HIB_GPIO17: GPIO17
• PRCM_HIB_GPIO11: GPIO11
• PRCM_HIB_GPIO24: GPIO24
Return: None
● unsigned long PRCMHibernateWakeupCauseGet(void)
Description: This function gets the HIB wake-up cause.
Parameter: None
Return: Returns the HIB wake-up cause enumerated as one of the following:
• PRCM_HIB_WAKEUP_CAUSE_SLOW_CLOCK: Slow clock counter
• PRCM_HIB_WAKEUP_CAUSE_GPIO: HIB wake-up GPIOs
● void PRCMHibernateWakeUpGPIOSelect(unsigned long ulMultiGPIOBitMap, unsigned long ulType)
Description: Sets the specified GPIOs as wake-up source and configures them to sense the specified
event.
Parameter:
• ulMultiGPIOBitMap: One of the valid HIB wake-up GPIOs. ulMultiGPIOBitMap is logical OR of one or
more of the following:
– PRCM_LPDS_GPIO2: GPIO2
– PRCM_LPDS_GPIO4: GPIO4
– PRCM_LPDS_GPIO13: GPIO13
– PRCM_LPDS_GPIO17: GPIO17
– PRCM_LPDS_GPIO11: GPIO11
– PRCM_LPDS_GPIO24: GPIO24
• ulType: Event Type. ulType can be one of the following: