STM8L15x Standard Peripherals Drivers
|
WakeUp Timer configuration functions. More...
Functions | |
uint16_t | RTC_GetWakeUpCounter (void) |
Returns the RTC Wakeup timer counter value. | |
void | RTC_SetWakeUpCounter (uint16_t RTC_WakeupCounter) |
Sets the RTC Wakeup counter. | |
void | RTC_WakeUpClockConfig (RTC_WakeUpClock_TypeDef RTC_WakeUpClock) |
Configures the RTC Wakeup clock source. | |
ErrorStatus | RTC_WakeUpCmd (FunctionalState NewState) |
Enables or Disables the RTC Wakeup Unit. |
Detailed Description
WakeUp Timer configuration functions.
=============================================================================== WakeUp Timer configuration functions =============================================================================== This section provide functions allowing to program and read the RTC WakeUp.
Function Documentation
uint16_t RTC_GetWakeUpCounter | ( | void | ) |
Returns the RTC Wakeup timer counter value.
Definition at line 1414 of file stm8l15x_rtc.c.
References RTC.
void RTC_SetWakeUpCounter | ( | uint16_t | RTC_WakeupCounter | ) |
Sets the RTC Wakeup counter.
- Note:
- Before configuring the wakeup unit counter, the wake up Unit must be disabled (if enabled) using RTC_WakeUpCmd(Disable).
Definition at line 1394 of file stm8l15x_rtc.c.
References RTC.
void RTC_WakeUpClockConfig | ( | RTC_WakeUpClock_TypeDef | RTC_WakeUpClock | ) |
Configures the RTC Wakeup clock source.
- Precondition:
- Before configuring the wakeup unit Clock source, the wake up Unit must be disabled (if enabled) using RTC_WakeUpCmd(Disable) .
Definition at line 1363 of file stm8l15x_rtc.c.
References IS_RTC_WAKEUP_CLOCK, RTC, RTC_CR1_WUCKSEL, and RTC_CR2_WUTE.
ErrorStatus RTC_WakeUpCmd | ( | FunctionalState | NewState | ) |
Enables or Disables the RTC Wakeup Unit.
Definition at line 1434 of file stm8l15x_rtc.c.
References DISABLE, ERROR, IS_FUNCTIONAL_STATE, RESET, RTC, RTC_CR2_WUTE, RTC_ISR1_WUTWF, SUCCESS, and WUTWF_TIMEOUT.