|
/**. q9 F& U3 l5 @1 f * @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, r( `+ E1 }9 V- |' @ * configured in Low power mode is allowed when Low power run mode is0 f$ A2 v2 Q) Q# Q * selected.; w; R c/ n" H+ u+ j+ q& ] * @note In Low power run mode, all I/O pins keep the same state as in Run mode. * @param None * @retval None */% p8 b8 p: ]7 q0 j void6 @" i) O+ ^% Z% \, y) Z Enable_LowPowerRun_Mode(void) { /* Enters the Low Power Run mode */& f6 v5 M- R6 K# c PWR->CR |= PWR_CR_LPSDSR;1 [( K. C1 J& E8 U* A, y PWR->CR |= PWR_CR_LPRUN;! q* A* c6 c9 x9 [1 @2 c+ u }* Q1 \' q# Q2 Y& }- K) p0 y+ y' s /** * @brief Exits the Low Power Run mode. * @param None) N$ R& R- I: I( F * @retval None */ void Disable_LowPowerRun_Mode(void) { /* Exits the Low Power Run mode */ PWR->CR &= (uint32_t) ~((uint32_t)PWR_CR_LPRUN);. O4 T+ _) g* e" G1 F) R7 ?; l Y PWR->CR &= (uint32_t) ~((uint32_t)PWR_CR_LPSDSR); }, Q8 R8 K) \& I |
| 谢谢,正在学习 |
学习学习 |
|
学习过,都忘了. I1 F: n0 ^ N- ~9 E+ g( z |
| 学习学习 |
| 学习学习 |
| 还没有用过这东西 |
微信公众号
手机版