STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
core_stop.h File Reference

This file contains the function prototypes for entering and leaving low power modes. More...

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Functions

void EnterStop2Mode (void)
 Enter into STOP2 mode. More...
 
void ResumeFromStop2Mode (void)
 Resume from STOP2 mode. More...
 

Detailed Description

This file contains the function prototypes for entering and leaving low power modes.

STM32 RTC Scheduler

Author
Akos Pasztor
See also
Please refer to README for detailed information.

Definition in file core_stop.h.

Function Documentation

◆ EnterStop2Mode()

void EnterStop2Mode ( void  )

Enter into STOP2 mode.

This funtion suspends the SysTick, deinitializes all previously initialized peripherals (except the RTC), resets the clock configuration and puts the MCU into STOP2 mode. The RTC remains running in STOP2 mode.

Definition at line 31 of file core_stop.c.

◆ ResumeFromStop2Mode()

void ResumeFromStop2Mode ( void  )

Resume from STOP2 mode.

This funtion reinitializes the clock configuration, reconfigures the peripherals and resumes the SysTick operation.

Definition at line 85 of file core_stop.c.