基质喷涂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file adc.h
  5. * @brief This file contains all the function prototypes for
  6. * the adc.c file
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2025 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef BSP_ADC_H
  22. #define BSP_ADC_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "main.h"
  28. /* USER CODE BEGIN Includes */
  29. /* USER CODE END Includes */
  30. extern ADC_HandleTypeDef hadc1;
  31. extern ADC_HandleTypeDef hadc2;
  32. /* USER CODE BEGIN Private defines */
  33. /* USER CODE END Private defines */
  34. void MX_ADC1_Init(void);
  35. void MX_ADC2_Init(void);
  36. /* USER CODE BEGIN Prototypes */
  37. uint32_t readFlowMeterADC();
  38. /* USER CODE END Prototypes */
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif /* __ADC_H__ */