ADC_ExtLinesTrigger
[STM32F10x_StdPeriph_Examples]

Defines

#define ADC1_DR_Address   ((uint32_t)0x4001244C)

Functions

void ADC1_2_IRQHandler (void)
 This function handles ADC1 and ADC2 global interrupts requests.
void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void GPIO_Configuration (void)
 Configures the different GPIO ports.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void NVIC_Configuration (void)
 Configures NVIC and Vector Table base location.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void RCC_Configuration (void)
 Configures the different system clocks.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

ADC_InitTypeDef ADC_InitStructure
__IO uint16_t ADC_InjectedConvertedValueTab [32]
__IO uint16_t ADC_InjectedConvertedValueTab [32]
__IO uint16_t ADC_RegularConvertedValueTab [64]
DMA_InitTypeDef DMA_InitStructure
uint32_t Index = 0

Define Documentation

#define ADC1_DR_Address   ((uint32_t)0x4001244C)

Function Documentation

void ADC1_2_IRQHandler ( void   ) 

This function handles ADC1 and ADC2 global interrupts requests.

Parameters:
None 
Return values:
None 

Definition at line 157 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

References ADC1, ADC_ClearITPendingBit(), ADC_GetInjectedConversionValue(), ADC_InjectedChannel_1, ADC_InjectedChannel_2, ADC_InjectedConvertedValueTab, ADC_IT_JEOC, and Index.

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 88 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 123 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void GPIO_Configuration ( void   ) 
void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 62 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_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_stm32f10x_xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file

Definition at line 55 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/main.c.

References ADC1, ADC1_DR_Address, ADC_Channel_11, ADC_Channel_12, ADC_Channel_14, ADC_Channel_4, ADC_Cmd(), ADC_InitTypeDef::ADC_ContinuousConvMode, ADC_InitTypeDef::ADC_DataAlign, ADC_DataAlign_Right, ADC_DiscModeChannelCountConfig(), ADC_DiscModeCmd(), ADC_DMACmd(), ADC_InitTypeDef::ADC_ExternalTrigConv, ADC_ExternalTrigConv_Ext_IT11_TIM8_TRGO, ADC_ExternalTrigConvCmd(), ADC_ExternalTrigInjecConv_Ext_IT15_TIM8_CC4, ADC_ExternalTrigInjectedConvCmd(), ADC_ExternalTrigInjectedConvConfig(), ADC_GetCalibrationStatus(), ADC_GetResetCalibrationStatus(), ADC_Init(), ADC_InjectedChannelConfig(), ADC_InjectedSequencerLengthConfig(), ADC_IT_JEOC, ADC_ITConfig(), ADC_InitTypeDef::ADC_Mode, ADC_Mode_Independent, ADC_InitTypeDef::ADC_NbrOfChannel, ADC_RegularChannelConfig(), ADC_RegularConvertedValueTab, ADC_ResetCalibration(), ADC_SampleTime_28Cycles5, ADC_InitTypeDef::ADC_ScanConvMode, ADC_StartCalibration(), DISABLE, DMA1_Channel1, DMA_InitTypeDef::DMA_BufferSize, DMA_Cmd(), DMA_DeInit(), DMA_InitTypeDef::DMA_DIR, DMA_DIR_PeripheralSRC, DMA_Init(), DMA_InitTypeDef::DMA_M2M, DMA_M2M_Disable, DMA_InitTypeDef::DMA_MemoryBaseAddr, DMA_InitTypeDef::DMA_MemoryDataSize, DMA_MemoryDataSize_HalfWord, DMA_InitTypeDef::DMA_MemoryInc, DMA_MemoryInc_Enable, DMA_InitTypeDef::DMA_Mode, DMA_Mode_Circular, DMA_InitTypeDef::DMA_PeripheralBaseAddr, DMA_InitTypeDef::DMA_PeripheralDataSize, DMA_PeripheralDataSize_HalfWord, DMA_InitTypeDef::DMA_PeripheralInc, DMA_PeripheralInc_Disable, DMA_InitTypeDef::DMA_Priority, DMA_Priority_High, ENABLE, EXTI_Configuration(), GPIO_Configuration(), NVIC_Configuration(), and RCC_Configuration().

void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 75 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 53 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void NVIC_Configuration ( void   ) 
void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 132 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void RCC_Configuration ( void   ) 
void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 114 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 141 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 101 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/stm32f10x_it.c.


Variable Documentation

__IO uint16_t ADC_InjectedConvertedValueTab[32]
__IO uint16_t ADC_InjectedConvertedValueTab[32]
__IO uint16_t ADC_RegularConvertedValueTab[64]

Definition at line 40 of file STM32F10x_StdPeriph_Examples/ADC/ExtLinesTrigger/main.c.

Referenced by main().

uint32_t Index = 0
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32