Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

RTC

Functions

__STATIC_INLINE void LL_RCC_SetRTCClockSource (uint32_t Source)
 Set RTC Clock Source.
__STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource (void)
 Get RTC Clock Source BDCR RTCSEL LL_RCC_GetRTCClockSource.
__STATIC_INLINE void LL_RCC_EnableRTC (void)
 Enable RTC BDCR RTCEN LL_RCC_EnableRTC.
__STATIC_INLINE void LL_RCC_DisableRTC (void)
 Disable RTC BDCR RTCEN LL_RCC_DisableRTC.
__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC (void)
 Check if RTC has been enabled or not BDCR RTCEN LL_RCC_IsEnabledRTC.
__STATIC_INLINE void LL_RCC_ForceBackupDomainReset (void)
 Force the Backup domain reset BDCR BDRST LL_RCC_ForceBackupDomainReset.
__STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset (void)
 Release the Backup domain reset BDCR BDRST LL_RCC_ReleaseBackupDomainReset.

Function Documentation

__STATIC_INLINE void LL_RCC_DisableRTC ( void   )

Disable RTC BDCR RTCEN LL_RCC_DisableRTC.

Return values:
None

Definition at line 2106 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_EnableRTC ( void   )

Enable RTC BDCR RTCEN LL_RCC_EnableRTC.

Return values:
None

Definition at line 2096 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_ForceBackupDomainReset ( void   )

Force the Backup domain reset BDCR BDRST LL_RCC_ForceBackupDomainReset.

Return values:
None

Definition at line 2126 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_GetRTCClockSource ( void   )

Get RTC Clock Source BDCR RTCSEL LL_RCC_GetRTCClockSource.

Return values:
Returnedvalue can be one of the following values:

  • LL_RCC_RTC_CLKSOURCE_NONE
  • LL_RCC_RTC_CLKSOURCE_LSE
  • LL_RCC_RTC_CLKSOURCE_LSI
  • LL_RCC_RTC_CLKSOURCE_HSE_DIV32

Definition at line 2086 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_IsEnabledRTC ( void   )

Check if RTC has been enabled or not BDCR RTCEN LL_RCC_IsEnabledRTC.

Return values:
Stateof bit (1 or 0).

Definition at line 2116 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_ReleaseBackupDomainReset ( void   )

Release the Backup domain reset BDCR BDRST LL_RCC_ReleaseBackupDomainReset.

Return values:
None

Definition at line 2136 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_SetRTCClockSource ( uint32_t  Source )

Set RTC Clock Source.

Note:
Once the RTC clock source has been selected, it cannot be changed anymore unless the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset them. BDCR RTCSEL LL_RCC_SetRTCClockSource
Parameters:
SourceThis parameter can be one of the following values:

  • LL_RCC_RTC_CLKSOURCE_NONE
  • LL_RCC_RTC_CLKSOURCE_LSE
  • LL_RCC_RTC_CLKSOURCE_LSI
  • LL_RCC_RTC_CLKSOURCE_HSE_DIV32
Return values:
None

Definition at line 2072 of file stm32l4xx_ll_rcc.h.