STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Macros | |
#define | RTC_CLOCK_SOURCE_HSE |
#define | RTC_ASYNCH_PREDIV 99U |
#define | RTC_SYNCH_PREDIV 9U |
#define | RCC_RTCCLKSOURCE_1MHZ ((uint32_t)((uint32_t)RCC_BDCR_RTCSEL | (uint32_t)((HSE_VALUE/1000000U) << 16U))) |
Functions | |
void | RTC_WKUP_IRQHandler (void) |
This function handles WAKE UP TIMER interrupt request. | |
HAL_StatusTypeDef | HAL_InitTick (uint32_t TickPriority) |
This function configures the RTC_WKUP as a time base source. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. Wakeup Time base = ((RTC_ASYNCH_PREDIV + 1) * (RTC_SYNCH_PREDIV + 1)) / RTC_CLOCK = 1ms Wakeup Time = WakeupTimebase * WakeUpCounter (0 + 1) = 1 ms. | |
void | HAL_SuspendTick (void) |
Suspend Tick increment. | |
void | HAL_ResumeTick (void) |
Resume Tick increment. | |
void | HAL_RTCEx_WakeUpTimerEventCallback (RTC_HandleTypeDef *hrtc) |
Wake Up Timer Event Callback in non blocking mode. | |
Variables | |
RTC_HandleTypeDef | hRTC_Handle |
#define RTC_CLOCK_SOURCE_HSE |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Definition at line 68 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
#define RTC_ASYNCH_PREDIV 99U |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Definition at line 73 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
Referenced by HAL_InitTick().
#define RTC_SYNCH_PREDIV 9U |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Definition at line 74 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
Referenced by HAL_InitTick().
#define RCC_RTCCLKSOURCE_1MHZ ((uint32_t)((uint32_t)RCC_BDCR_RTCSEL | (uint32_t)((HSE_VALUE/1000000U) << 16U))) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Definition at line 75 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
Referenced by HAL_InitTick().
void RTC_WKUP_IRQHandler | ( | void | ) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
This function handles WAKE UP TIMER interrupt request.
None |
Definition at line 280 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
References HAL_RTCEx_WakeUpTimerIRQHandler(), and hRTC_Handle.
HAL_StatusTypeDef HAL_InitTick | ( | uint32_t | TickPriority | ) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
This function configures the RTC_WKUP as a time base source. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority. Wakeup Time base = ((RTC_ASYNCH_PREDIV + 1) * (RTC_SYNCH_PREDIV + 1)) / RTC_CLOCK = 1ms Wakeup Time = WakeupTimebase * WakeUpCounter (0 + 1) = 1 ms.
TickPriority | Tick interrupt priority. |
HAL | status |
Definition at line 103 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
References __HAL_PWR_CLEAR_FLAG, __HAL_RCC_RTC_ENABLE, __HAL_RTC_WAKEUPTIMER_CLEAR_FLAG, __HAL_RTC_WAKEUPTIMER_DISABLE, __HAL_RTC_WAKEUPTIMER_DISABLE_IT, __HAL_RTC_WAKEUPTIMER_ENABLE, __HAL_RTC_WAKEUPTIMER_ENABLE_IT, __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT, __HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE, __HAL_RTC_WAKEUPTIMER_GET_FLAG, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, RTC_InitTypeDef::AsynchPrediv, HAL_ERROR, HAL_NVIC_EnableIRQ(), HAL_NVIC_SetPriority(), HAL_OK, HAL_RCC_OscConfig(), HAL_RCCEx_PeriphCLKConfig(), HAL_RTC_Init(), RTC_InitTypeDef::HourFormat, hRTC_Handle, RCC_OscInitTypeDef::HSEState, RTC_HandleTypeDef::Init, RTC_HandleTypeDef::Instance, RCC_OscInitTypeDef::LSEState, RCC_OscInitTypeDef::LSIState, RCC_OscInitTypeDef::OscillatorType, RTC_InitTypeDef::OutPut, RTC_InitTypeDef::OutPutPolarity, RTC_InitTypeDef::OutPutType, RCC_PeriphCLKInitTypeDef::PeriphClockSelection, RCC_OscInitTypeDef::PLL, RCC_PLLInitTypeDef::PLLState, PWR_FLAG_WU, RCC_HSE_ON, RCC_LSE_ON, RCC_LSI_ON, RCC_OSCILLATORTYPE_HSE, RCC_OSCILLATORTYPE_LSE, RCC_OSCILLATORTYPE_LSI, RCC_PERIPHCLK_RTC, RCC_PLL_NONE, RCC_RTCCLKSOURCE_1MHZ, RCC_RTCCLKSOURCE_LSE, RCC_RTCCLKSOURCE_LSI, RTC_ASYNCH_PREDIV, RTC_FLAG_WUTF, RTC_FLAG_WUTWF, RTC_HOURFORMAT_24, RTC_IT_WUT, RTC_OUTPUT_DISABLE, RTC_OUTPUT_POLARITY_HIGH, RTC_OUTPUT_TYPE_OPENDRAIN, RTC_SYNCH_PREDIV, RTC_WAKEUPCLOCK_CK_SPRE_16BITS, RCC_PeriphCLKInitTypeDef::RTCClockSelection, RTC_InitTypeDef::SynchPrediv, and uwTickPrio.
void HAL_SuspendTick | ( | void | ) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Suspend Tick increment.
None |
Definition at line 238 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
References __HAL_RTC_WAKEUPTIMER_DISABLE_IT, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, hRTC_Handle, and RTC_IT_WUT.
void HAL_ResumeTick | ( | void | ) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Resume Tick increment.
None |
Definition at line 253 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
References __HAL_RTC_WAKEUPTIMER_ENABLE_IT, __HAL_RTC_WRITEPROTECTION_DISABLE, __HAL_RTC_WRITEPROTECTION_ENABLE, hRTC_Handle, and RTC_IT_WUT.
void HAL_RTCEx_WakeUpTimerEventCallback | ( | RTC_HandleTypeDef * | hrtc | ) |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Wake Up Timer Event Callback in non blocking mode.
hrtc | RTC handle |
None |
Definition at line 271 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
References HAL_IncTick().
RTC_HandleTypeDef hRTC_Handle |
#include <stm32f4xx_hal_timebase_rtc_wakeup_template.c>
Definition at line 83 of file stm32f4xx_hal_timebase_rtc_wakeup_template.c.
Referenced by HAL_InitTick(), HAL_ResumeTick(), HAL_SuspendTick(), and RTC_WKUP_IRQHandler().