STM32F0xx Standard Peripherals Firmware Library
|
Defines | |
#define | ADC1_DR_Address 0x40012440 |
#define | MESSAGE1 "STM32F0xx CortexM0 " |
#define | MESSAGE2 " STM32072B-EVAL " |
#define | MESSAGE3 " Turn RV3(PC.00) " |
Functions | |
static void | ADC_Config (void) |
ADC1 channel configuration. | |
static void | Display (void) |
Display ADC converted value on LCD. | |
static void | Display_Init (void) |
Display Init (LCD) | |
static void | DMA_Config (void) |
DMA channel1 configuration. | |
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 | SVC_Handler (void) |
This function handles SVCall exception. | |
void | SysTick_Handler (void) |
This function handles SysTick Handler. | |
Variables | |
__IO uint16_t | ADC1ConvertedValue = 0 |
__IO uint16_t | ADC1ConvertedVoltage = 0 |
__IO uint16_t | RegularConvData_Tab [4] |
Define Documentation
#define ADC1_DR_Address 0x40012440 |
Definition at line 49 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
Referenced by DMA_Config().
#define MESSAGE1 "STM32F0xx CortexM0 " |
Definition at line 41 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
Referenced by Display_Init().
#define MESSAGE2 " STM32072B-EVAL " |
Definition at line 46 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
Referenced by Display_Init().
#define MESSAGE3 " Turn RV3(PC.00) " |
Definition at line 47 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
Referenced by Display_Init().
Function Documentation
static void ADC_Config | ( | void | ) | [static] |
ADC1 channel configuration.
- Parameters:
-
None
- Return values:
-
None
Definition at line 105 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
References GPIO_InitStructure.
Referenced by main().
static void Display | ( | void | ) | [static] |
Display ADC converted value on LCD.
- Parameters:
-
None
- Return values:
-
None
Definition at line 213 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
References RegularConvData_Tab.
Referenced by main().
static void Display_Init | ( | void | ) | [static] |
static void DMA_Config | ( | void | ) | [static] |
DMA channel1 configuration.
- Parameters:
-
None
- Return values:
-
None
Definition at line 183 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
References ADC1_DR_Address, DMA_InitStructure, and RegularConvData_Tab.
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/ADC/ADC_DMA/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 68 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
References ADC_Config(), Display(), Display_Init(), and DMA_Config().
void NMI_Handler | ( | void | ) |
This function handles NMI exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 57 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/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/ADC/ADC_DMA/stm32f0xx_it.c.
void SVC_Handler | ( | void | ) |
This function handles SVCall exception.
- Parameters:
-
None
- Return values:
-
None
Definition at line 79 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/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/ADC/ADC_DMA/stm32f0xx_it.c.
Variable Documentation
__IO uint16_t ADC1ConvertedValue = 0 |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
__IO uint16_t ADC1ConvertedVoltage = 0 |
Definition at line 53 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
__IO uint16_t RegularConvData_Tab[4] |
Definition at line 54 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_DMA/main.c.
Referenced by Display(), and DMA_Config().