Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#include "stm32f4xx_hal.h"
#include "stm32f4xx_nucleo_144.h"
#include "stm32f4xx_ll_adc.h"
#include "stm32f4xx_ll_bus.h"
#include "stm32f4xx_ll_rcc.h"
#include "stm32f4xx_ll_system.h"
#include "stm32f4xx_ll_utils.h"
#include "stm32f4xx_ll_pwr.h"
Exported constants
#define WAVEFORM_GENERATION
#define ADCx
#define ADCx_CLK_ENABLE
#define ADCx_FORCE_RESET
#define ADCx_RELEASE_RESET
#define ADCx_CHANNELa
#define ADCx_IRQn
#define ADCx_IRQHandler
#define ADCx_CHANNELa_GPIO_CLK_ENABLE
#define ADCx_CHANNELa_GPIO_PORT
#define ADCx_CHANNELa_PIN
#define DACx
#define DACx_CLK_ENABLE
#define DACx_CHANNEL_GPIO_CLK_ENABLE
#define DACx_FORCE_RESET
#define DACx_RELEASE_RESET
#define DACx_CHANNEL_TO_ADCx_CHANNELa
#define DACx_CHANNEL_TO_ADCx_CHANNELa_PIN
#define DACx_CHANNEL_TO_ADCx_CHANNELa_GPIO_PORT
#define DACx_IRQn
#define DACx_IRQHandler
Exported functions
AdcGrpRegularUnitaryConvComplete_Callback();
AdcGrpRegularOverrunError_Callback();
Files
loading...
SourceVuSTM32 Libraries and SamplesADC_SingleConversion_TriggerSW_ITInc/main.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file Examples_MIX/ADC/ADC_SingleConversion_TriggerSW_IT/Inc/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "stm32f4xx_nucleo_144.h" #include "stm32f4xx_ll_adc.h" #include "stm32f4xx_ll_bus.h" #include "stm32f4xx_ll_rcc.h" #include "stm32f4xx_ll_system.h" #include "stm32f4xx_ll_utils.h" #include "stm32f4xx_ll_pwr.h" 8 includes Includes/* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Waveform voltage generation for test: */ /* - If this literal is defined: For this example purpose, generates a */ /* waveform voltage on a spare DAC channel, so user has just to connect */ /* a wire between DAC channel output and ADC input to run this example. */ /* (this avoid to user the need of an external signal voltage generator). */ /* - If this literal is not defined: User has to connect an external signal */ /* voltage generator on the selected ADC input to run this example. */ #define WAVEFORM_GENERATION /* User can use this section to tailor ADCx instance under use and associated resources *//* ... */ /* ## Definition of ADC related resources ################################### */ /* Definition of ADCx clock resources */ #define ADCx ADC1 #define ADCx_CLK_ENABLE() __HAL_RCC_ADC1_CLK_ENABLE() #define ADCx_FORCE_RESET() __HAL_RCC_ADC_FORCE_RESET() #define ADCx_RELEASE_RESET() __HAL_RCC_ADC_RELEASE_RESET() /* Definition of ADCx channels */ #define ADCx_CHANNELa ADC_CHANNEL_4 /* Definition of ADCx NVIC resources */ #define ADCx_IRQn ADC_IRQn #define ADCx_IRQHandler ADC_IRQHandler /* Definition of ADCx channels pins */ #define ADCx_CHANNELa_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() #define ADCx_CHANNELa_GPIO_PORT GPIOA #define ADCx_CHANNELa_PIN GPIO_PIN_4 11 defines #if defined(WAVEFORM_GENERATION) /* ## Definition of DAC related resources ################################### */ /* Definition of DACx clock resources */ #define DACx DAC #define DACx_CLK_ENABLE() __HAL_RCC_DAC_CLK_ENABLE() #define DACx_CHANNEL_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() #define DACx_FORCE_RESET() __HAL_RCC_DAC_FORCE_RESET() #define DACx_RELEASE_RESET() __HAL_RCC_DAC_RELEASE_RESET() /* Definition of DACx channels */ #define DACx_CHANNEL_TO_ADCx_CHANNELa DAC_CHANNEL_1 /* Definition of DACx channels pins */ #define DACx_CHANNEL_TO_ADCx_CHANNELa_PIN GPIO_PIN_4 #define DACx_CHANNEL_TO_ADCx_CHANNELa_GPIO_PORT GPIOA /* Definition of DACx NVIC resources */ #define DACx_IRQn TIM6_DAC_IRQn #define DACx_IRQHandler TIM6_DAC_IRQHandler 10 defines /* ... */#endif /* WAVEFORM_GENERATION */ Exported constants /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ /* IRQ Handler treatment */ void AdcGrpRegularUnitaryConvComplete_Callback(void); void AdcGrpRegularOverrunError_Callback(void); Exported functions /* ... */#endif /* __MAIN_H */
Details