STM32F0xx Standard Peripherals Firmware Library: ADC_BatteryChargeMonitoring

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library
ADC_BatteryChargeMonitoring

Defines

#define MESSAGE1   "STM32F0xx CortexM0 "
#define MESSAGE2   " STM32072B-EVAL "

Functions

static void ADC_Config (void)
 ADC configuration.
static void Display (void)
 Display ADC converted value on LCD.
static void Display_Init (void)
 Display Init (LCD)
int main (void)
 Main program.
static void TIM_Config (void)
 TIM configuration.

Variables

__IO uint16_t ADC1ConvertedValue = 0
__IO uint16_t ADC1ConvertedVoltage = 0
__IO uint32_t ADCmvoltp = 0

Define Documentation

#define MESSAGE1   "STM32F0xx CortexM0 "
#define MESSAGE2   " STM32072B-EVAL "

Function Documentation

static void ADC_Config ( void  ) [static]

ADC configuration.

Parameters:
None
Return values:
None

Definition at line 105 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_BatteryChargeMonitoring/main.c.

Referenced by main().

static void Display ( void  ) [static]

Display ADC converted value on LCD.

Parameters:
None
Return values:
None

Definition at line 189 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_BatteryChargeMonitoring/main.c.

References ADC1ConvertedVoltage, and ADCmvoltp.

Referenced by main().

static void Display_Init ( void  ) [static]

Display Init (LCD)

Parameters:
None
Return values:
None�

Definition at line 235 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_BatteryChargeMonitoring/main.c.

References MESSAGE1, and MESSAGE2.

Referenced by main().

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 65 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_BatteryChargeMonitoring/main.c.

References ADC1ConvertedValue, ADC1ConvertedVoltage, ADC_Config(), Display(), Display_Init(), and TIM_Config().

static void TIM_Config ( void  ) [static]

TIM configuration.

Parameters:
None
Return values:
None

Definition at line 151 of file STM32F0xx_StdPeriph_Examples/ADC/ADC_BatteryChargeMonitoring/main.c.

References TIM_OCInitStructure, and TIM_TimeBaseStructure.

Referenced by main().


Variable Documentation

__IO uint32_t ADCmvoltp = 0
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32