/** ****************************************************************************** * @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 includesIncludes/* 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. */#defineWAVEFORM_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 */#defineADCxADC1#defineADCx_CLK_ENABLE()__HAL_RCC_ADC1_CLK_ENABLE()#defineADCx_FORCE_RESET()__HAL_RCC_ADC_FORCE_RESET()#defineADCx_RELEASE_RESET()__HAL_RCC_ADC_RELEASE_RESET()/* Definition of ADCx channels */#defineADCx_CHANNELaADC_CHANNEL_4/* Definition of ADCx NVIC resources */#defineADCx_IRQnADC_IRQn#defineADCx_IRQHandlerADC_IRQHandler/* Definition of ADCx channels pins */#defineADCx_CHANNELa_GPIO_CLK_ENABLE()__HAL_RCC_GPIOA_CLK_ENABLE()#defineADCx_CHANNELa_GPIO_PORTGPIOA#defineADCx_CHANNELa_PINGPIO_PIN_411 defines#ifdefined(WAVEFORM_GENERATION)/* ## Definition of DAC related resources ################################### *//* Definition of DACx clock resources */#defineDACxDAC#defineDACx_CLK_ENABLE()__HAL_RCC_DAC_CLK_ENABLE()#defineDACx_CHANNEL_GPIO_CLK_ENABLE()__HAL_RCC_GPIOA_CLK_ENABLE()#defineDACx_FORCE_RESET()__HAL_RCC_DAC_FORCE_RESET()#defineDACx_RELEASE_RESET()__HAL_RCC_DAC_RELEASE_RESET()/* Definition of DACx channels */#defineDACx_CHANNEL_TO_ADCx_CHANNELaDAC_CHANNEL_1/* Definition of DACx channels pins */#defineDACx_CHANNEL_TO_ADCx_CHANNELa_PINGPIO_PIN_4#defineDACx_CHANNEL_TO_ADCx_CHANNELa_GPIO_PORTGPIOA/* Definition of DACx NVIC resources */#defineDACx_IRQnTIM6_DAC_IRQn#defineDACx_IRQHandlerTIM6_DAC_IRQHandler10 defines/* ... */#endif/* WAVEFORM_GENERATION */Exported constants/* Exported macro ------------------------------------------------------------*//* Exported functions ------------------------------------------------------- *//* IRQ Handler treatment */voidAdcGrpRegularUnitaryConvComplete_Callback(void);voidAdcGrpRegularOverrunError_Callback(void);Exported functions/* ... */#endif/* __MAIN_H */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.