STM32F0xx Standard Peripherals Firmware Library
|
Functions | |
void | ADC1_COMP_IRQHandler (void) |
This function handles COMP interrupt request. | |
void | CheckState (void) |
check input voltage level: within the thresholds, above the upper threshold or under the lower threshold | |
static void | COMP_Config (void) |
Configure COMP1 and COMP2 with interrupt. | |
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 | RestoreConfiguration (void) |
Restore peripheral config before entering STOP mode. | |
static void | STOPEntry (void) |
Prepare the system to enter STOP mode. | |
void | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
Variables | |
__IO uint32_t | State = 0 |
Function Documentation
void ADC1_COMP_IRQHandler | ( | void | ) |
This function handles COMP interrupt request.
This function handles ADC1 global interrupts requests.
- Parameters:
-
None
- Return values:
-
None
Definition at line 109 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/stm32f0xx_it.c.
References CheckState().
void CheckState | ( | void | ) |
check input voltage level: within the thresholds, above the upper threshold or under the lower threshold
- Parameters:
-
None
- Return values:
-
None
Definition at line 247 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
References State, STATE_OVER_THRESHOLD, STATE_UNDER_THRESHOLD, and STATE_WITHIN_THRESHOLD.
Referenced by ADC1_COMP_IRQHandler(), and main().
static void COMP_Config | ( | void | ) | [static] |
Configure COMP1 and COMP2 with interrupt.
- Parameters:
-
None
- Return values:
-
None
Definition at line 143 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
References EXTI_InitStructure, GPIO_InitStructure, and NVIC_InitStructure.
Referenced by main().
void HardFault_Handler | ( | void | ) |
This function handles Hard Fault exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 66 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/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 57 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
References CheckState(), COMP_Config(), RestoreConfiguration(), State, STATE_OVER_THRESHOLD, STATE_UNDER_THRESHOLD, STATE_WITHIN_THRESHOLD, and STOPEntry().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/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/COMP/COMP_AnalogWatchdog/stm32f0xx_it.c.
static void RestoreConfiguration | ( | void | ) | [static] |
Restore peripheral config before entering STOP mode.
- Parameters:
-
None
- Return values:
-
None
Definition at line 274 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
Referenced by main().
static void STOPEntry | ( | void | ) | [static] |
Prepare the system to enter STOP mode.
- Parameters:
-
None
- Return values:
-
None
Definition at line 220 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
References GPIO_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/COMP/COMP_AnalogWatchdog/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/COMP/COMP_AnalogWatchdog/stm32f0xx_it.c.
Variable Documentation
__IO uint32_t State = 0 |
Definition at line 43 of file STM32F0xx_StdPeriph_Examples/COMP/COMP_AnalogWatchdog/main.c.
Referenced by CheckState(), and main().