STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
static uint32_t | GetLSIFrequency (void) |
Configures TIM14 to measure the LSI oscillator frequency. | |
void | HardFault_Handler (void) |
This function handles Hard Fault exception. | |
int | main (void) |
Main program. | |
void | NMI_Handler (void) |
This function handles NMI exception. | |
void | PendSV_Handler (void) |
This function handles PendSVC exception. | |
static void | RTC_Config (void) |
Configure the RTC peripheral by selecting the clock source. | |
void | RTC_IRQHandler (void) |
This function handles RTC Wakeup global interrupt request. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
void | TIM14_IRQHandler (void) |
This function handles TIM14 global interrupt request. | |
Variables | |
__IO uint32_t | CaptureNumber = 0 |
__IO uint32_t | CaptureNumber |
uint32_t | IC1ReadValue1 = 0 |
uint32_t | IC1ReadValue2 = 0 |
__IO uint32_t | LsiFreq = 0 |
__IO uint32_t | PeriodValue |
__IO uint32_t | PeriodValue = 0 |
RTC_InitTypeDef | RTC_InitStructure |
Function Documentation
static uint32_t GetLSIFrequency | ( | void | ) | [static] |
Configures TIM14 to measure the LSI oscillator frequency.
- Parameters:
-
None
- Return values:
-
LSI Frequency
Definition at line 183 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
References CaptureNumber, NVIC_InitStructure, and PeriodValue.
Referenced by main().
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 69 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
int main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file
Definition at line 58 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
References GetLSIFrequency(), LsiFreq, RTC_Config(), and RTC_InitStructure.
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 60 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 91 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
static void RTC_Config | ( | void | ) | [static] |
Configure the RTC peripheral by selecting the clock source.
- Parameters:
-
None
- Return values:
-
None
Definition at line 103 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
References EXTI_InitStructure, NVIC_InitStructure, and RTC_InitStructure.
Referenced by main().
void RTC_IRQHandler | ( | void | ) |
This function handles RTC Wakeup global interrupt request.
This function handles RTC Auto wake-up interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 151 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 82 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 100 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
void TIM14_IRQHandler | ( | void | ) |
This function handles TIM14 global interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 112 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
References CaptureNumber, IC1ReadValue1, IC1ReadValue2, and PeriodValue.
Variable Documentation
__IO uint32_t CaptureNumber = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
__IO uint32_t CaptureNumber |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/IWDG/IWDG_Reset/stm32f0xx_it.c.
uint32_t IC1ReadValue1 = 0 |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
uint32_t IC1ReadValue2 = 0 |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/stm32f0xx_it.c.
__IO uint32_t LsiFreq = 0 |
Definition at line 44 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
__IO uint32_t PeriodValue |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_Standby/stm32f0xx_it.c.
__IO uint32_t PeriodValue = 0 |
Definition at line 45 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
Referenced by GetLSIFrequency(), and TIM14_IRQHandler().
RTC_InitTypeDef RTC_InitStructure |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/RTC/RTC_LSI/main.c.
Referenced by main(), RTC_Config(), StandbyRTCMode_Measure(), and StopMode_Measure().