STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
void | EXTI0_1_IRQHandler (void) |
This function handles EXTI Lines 0 to 1 interrupts requests. | |
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. | |
void | RTC_IRQHandler (void) |
This function handles RTC Auto wake-up interrupt request. | |
void | SleepMode_Measure (void) |
This function configures the system to enter Sleep mode for current consumption measurement purpose. | |
void | StandbyMode_Measure (void) |
This function configures the system to enter Standby mode for current consumption measurement purpose. | |
void | StandbyRTCMode_Measure (void) |
This function configures the system to enter Standby mode with RTC clocked by LSI for current consumption measurement purpose. | |
void | StopMode_Measure (void) |
This function configures the system to enter Stop mode with RTC clocked by LSI for current consumption measurement purpose. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
Variables | |
__IO uint32_t | i = 0 |
Function Documentation
void EXTI0_1_IRQHandler | ( | void | ) |
This function handles EXTI Lines 0 to 1 interrupts requests.
This function handles EXTI 10 to 15 request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 113 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/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 53 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/main.c.
References i, SleepMode_Measure(), StandbyMode_Measure(), StandbyRTCMode_Measure(), and StopMode_Measure().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
void PendSV_Handler | ( | void | ) |
This function handles PendSVC exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 88 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
void RTC_IRQHandler | ( | void | ) |
This function handles RTC Auto wake-up interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 127 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
void SleepMode_Measure | ( | void | ) |
This function configures the system to enter Sleep mode for current consumption measurement purpose.
Sleep Mode ==========
- System Running at PLL (48MHz)
- Flash 1 wait state
- Prefetch and Cache enabled
- Code running from Internal FLASH
- All peripherals disabled.
- Wakeup using EXTI Line (KEY Button PB.08)
- Parameters:
-
None
- Return values:
-
None
Definition at line 65 of file stm32f0xx_lp_modes.c.
References GPIO_InitStructure.
Referenced by main().
void StandbyMode_Measure | ( | void | ) |
This function configures the system to enter Standby mode for current consumption measurement purpose.
STANDBY Mode ============
- RTC OFF
- IWDG and LSI OFF
- Wakeup using WakeUp Pin2 (PC.13)
- Parameters:
-
None
- Return values:
-
None
Definition at line 269 of file stm32f0xx_lp_modes.c.
Referenced by main().
void StandbyRTCMode_Measure | ( | void | ) |
This function configures the system to enter Standby mode with RTC clocked by LSI for current consumption measurement purpose.
STANDBY Mode with RTC clocked by LSI ========================================
- RTC Clocked by LSI
- IWDG OFF
- Automatic Wakeup using RTC
- Parameters:
-
None
- Return values:
-
None
Definition at line 303 of file stm32f0xx_lp_modes.c.
References RTC_InitStructure.
Referenced by main().
void StopMode_Measure | ( | void | ) |
This function configures the system to enter Stop mode with RTC clocked by LSI for current consumption measurement purpose.
STOP Mode with RTC clocked by LSI =====================================
- RTC Clocked by LSI
- Regulator in LP mode
- HSI, HSE OFF and LSI OFF if not used as RTC Clock source
- No IWDG
- FLASH in deep power down mode
- Automatic Wakeup using RTC clocked by LSI (~5s)
- Parameters:
-
None
- Return values:
-
None
Definition at line 132 of file stm32f0xx_lp_modes.c.
References EXTI_InitStructure, GPIO_InitStructure, NVIC_InitStructure, and RTC_InitStructure.
Referenced by main().
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 79 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
void SysTick_Handler | ( | void | ) |
This function handles SysTick Handler.
- Parameters:
-
None
- Return values:
-
None
Definition at line 97 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/stm32f0xx_it.c.
Variable Documentation
__IO uint32_t i = 0 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/PWR/PWR_CurrentConsumption/main.c.
Referenced by CAN_Interrupt(), CAN_Polling(), CPAL_I2C_RXTC_UserCallback(), main(), RTC_Time_display(), RTC_Time_Display(), and RTC_Time_InitDisplay().