84 #define RTC_CLOCK_SOURCE_HSE 88 #ifdef RTC_CLOCK_SOURCE_HSE 89 #define RTC_ASYNCH_PREDIV 99U 90 #define RTC_SYNCH_PREDIV 9U 91 #define RCC_RTCCLKSOURCE_1MHZ ((uint32_t)((uint32_t)RCC_BDCR_RTCSEL | (uint32_t)((HSE_VALUE/1000000U) << 16U))) 93 #define RTC_ASYNCH_PREDIV 0U 94 #define RTC_SYNCH_PREDIV 31U 115 __IO uint32_t counter = 0U;
120 #ifdef RTC_CLOCK_SOURCE_LSE 126 #elif defined (RTC_CLOCK_SOURCE_LSI) 132 #elif defined (RTC_CLOCK_SOURCE_HSE) 140 #error Please select the RTC Clock source 273 __IO uint32_t counter = 0U;
#define __HAL_RTC_ALARM_CLEAR_FLAG(__HANDLE__, __FLAG__)
Clear the RTC Alarm's pending flags.
uint32_t PeriphClockSelection
#define __HAL_RTC_WRITEPROTECTION_DISABLE(__HANDLE__)
Disable the write protection for RTC registers.
#define RCC_PERIPHCLK_RTC
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
void HAL_SuspendTick(void)
Suspend Tick increment.
#define RCC_OSCILLATORTYPE_LSI
#define __HAL_RTC_ALARMA_ENABLE(__HANDLE__)
Enable the RTC ALARMA peripheral.
HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc)
#define RCC_RTCCLKSOURCE_LSI
#define RCC_RTCCLKSOURCE_LSE
#define RTC_ASYNCH_PREDIV
void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc)
ALARM A Event Callback in non blocking mode.
RCC extended clocks structure definition.
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
This file contains all the functions prototypes for the HAL module driver.
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
This function configures the RTC_ALARMA as a time base source. The time source is configured to have ...
#define __HAL_RTC_ALARM_DISABLE_IT(__HANDLE__, __INTERRUPT__)
Disable the RTC Alarm interrupt.
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
void HAL_IncTick(void)
This function is called to increment a global variable "uwTick" used as application time base...
#define RTC_OUTPUT_POLARITY_HIGH
#define __HAL_RTC_ALARM_EXTI_ENABLE_RISING_EDGE()
Enable rising edge trigger on the RTC Alarm associated Exti line.
void HAL_RTC_AlarmIRQHandler(RTC_HandleTypeDef *hrtc)
#define RCC_OSCILLATORTYPE_HSE
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
#define __HAL_RTC_ALARMA_DISABLE(__HANDLE__)
Disable the RTC ALARMA peripheral.
RTC_HandleTypeDef hRTC_Handle
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition.
#define __HAL_RTC_ALARM_ENABLE_IT(__HANDLE__, __INTERRUPT__)
Enable the RTC Alarm interrupt.
void RTC_Alarm_IRQHandler(void)
This function handles RTC ALARM interrupt request.
#define __HAL_RCC_RTC_ENABLE()
Macros to enable or disable the RTC clock.
RTC Handle Structure definition.
#define RTC_OUTPUT_DISABLE
uint32_t RTCClockSelection
void HAL_ResumeTick(void)
Resume Tick increment.
#define __HAL_RTC_WRITEPROTECTION_ENABLE(__HANDLE__)
Enable the write protection for RTC registers.
#define __HAL_RTC_ALARM_EXTI_ENABLE_IT()
Enable interrupt on the RTC Alarm associated Exti line.
HAL_StatusTypeDef
HAL Status structures definition.
#define RCC_OSCILLATORTYPE_LSE
#define RTC_OUTPUT_TYPE_OPENDRAIN
#define RCC_RTCCLKSOURCE_1MHZ
#define __HAL_RTC_ALARM_GET_FLAG(__HANDLE__, __FLAG__)
Get the selected RTC Alarm's flag status.
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct