思澈科技软件开发工具包  2.20

Macros

#define RTC_INIT_NORMAL   0
 
#define RTC_INIT_SKIP   1
 
#define RTC_INIT_REINIT   2
 

Functions

HAL_StatusTypeDef HAL_RTC_Init (RTC_HandleTypeDef *hrtc, uint32_t wakesrc)
 Initializes the RTC peripheral. More...
 
HAL_StatusTypeDef HAL_RTC_DeInit (RTC_HandleTypeDef *hrtc)
 DeInitializes the RTC peripheral. More...
 
void HAL_RTC_MspInit (RTC_HandleTypeDef *hrtc)
 Initializes the RTC MSP. More...
 
void HAL_RTC_MspDeInit (RTC_HandleTypeDef *hrtc)
 DeInitializes the RTC MSP. More...
 

Detailed Description

Function Documentation

◆ HAL_RTC_DeInit()

HAL_StatusTypeDef HAL_RTC_DeInit ( RTC_HandleTypeDef hrtc)

DeInitializes the RTC peripheral.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Note
This function doesn't reset the RTC Backup Data registers.
Return values
HALstatus

◆ HAL_RTC_Init()

HAL_StatusTypeDef HAL_RTC_Init ( RTC_HandleTypeDef hrtc,
uint32_t  wakesrc 
)

Initializes the RTC peripheral.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
wakesrcwakeup source, see RTC_INIT_XXX
Return values
HALstatus

◆ HAL_RTC_MspDeInit()

void HAL_RTC_MspDeInit ( RTC_HandleTypeDef hrtc)

DeInitializes the RTC MSP.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
None

◆ HAL_RTC_MspInit()

void HAL_RTC_MspInit ( RTC_HandleTypeDef hrtc)

Initializes the RTC MSP.

Parameters
hrtcpointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
Return values
None