在线时间908 小时
UID317774
ST金币4115
蝴蝶豆1
注册时间2010-4-9
该用户从未签到
论坛元老
- 最后登录
- 2024-4-24
|
/**
* @brief Enters the Low Power Run mode.
* @note Low power run mode can only be entered when VCORE is in range 2.
* In addition, the dynamic voltage scaling must not be used when Low
* power run mode is selected. Only Stop and Sleep modes with regulator
* configured in Low power mode is allowed when Low power run mode is
* selected.
* @note In Low power run mode, all I/O pins keep the same state as in Run mode.
* @param None
* @retval None
*/
void
Enable_LowPowerRun_Mode(void)
{
/* Enters the Low Power Run mode */
PWR->CR |= PWR_CR_LPSDSR;
PWR->CR |= PWR_CR_LPRUN;
}
/**
* @brief Exits the Low Power Run mode.
* @param None
* @retval None
*/
void
Disable_LowPowerRun_Mode(void)
{
/* Exits the Low Power Run mode */
PWR->CR &= (uint32_t) ~((uint32_t)PWR_CR_LPRUN);
PWR->CR &= (uint32_t) ~((uint32_t)PWR_CR_LPSDSR);
}
|
|