1234567891011121314151617181920212223242526272829303132333435 |
- /**
- ******************************************************************************
- * @file lib_CodeRAM.c
- * @author Application Team
- * @version V4.4.0
- * @date 2019-01-18
- * @brief Codes executed in SRAM.
- ******************************************************************************
- * @attention
- *
- ******************************************************************************
- */
- /* Includes ------------------------------------------------------------------*/
- #include "lib_CodeRAM.h"
- #ifndef __GNUC__
- /**
- * @brief Flash deep standby, enter idle mode.
- * @note This function is executed in RAM.
- * @param None
- * @retval None
- */
- __RAM_FUNC void PMU_EnterIdle_FlashDSTB(void)
- {
- /* Flash deep standby */
- FLASH->PASS = 0x55AAAA55;
- FLASH->DSTB = 0xAA5555AA;
- /* Enter Idle mode */
- SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk);
- __WFI();
- }
- #endif
- /*********************************** END OF FILE ******************************/
|