main(6098).h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : main.h
  5. * @brief : Header for main.c file.
  6. * This file contains the common defines of the application.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under Ultimate Liberty license
  14. * SLA0044, the "License"; You may not use this file except in compliance with
  15. * the License. You may obtain a copy of the License at:
  16. * www.st.com/SLA0044
  17. *
  18. ******************************************************************************
  19. */
  20. /* USER CODE END Header */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __MAIN_H
  23. #define __MAIN_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f1xx_hal.h"
  29. /* Private includes ----------------------------------------------------------*/
  30. /* USER CODE BEGIN Includes */
  31. /* USER CODE END Includes */
  32. /* Exported types ------------------------------------------------------------*/
  33. /* USER CODE BEGIN ET */
  34. /* USER CODE END ET */
  35. /* Exported constants --------------------------------------------------------*/
  36. /* USER CODE BEGIN EC */
  37. /* USER CODE END EC */
  38. /* Exported macro ------------------------------------------------------------*/
  39. /* USER CODE BEGIN EM */
  40. extern ADC_HandleTypeDef hadc1;
  41. extern DMA_HandleTypeDef hdma_adc1;
  42. /* USER CODE END EM */
  43. /* Exported functions prototypes ---------------------------------------------*/
  44. void Error_Handler(void);
  45. /* USER CODE BEGIN EFP */
  46. /* USER CODE END EFP */
  47. /* Private defines -----------------------------------------------------------*/
  48. #define BOOT_LED_Pin GPIO_PIN_15
  49. #define BOOT_LED_GPIO_Port GPIOC
  50. #define DL_TX_DET_Pin GPIO_PIN_0
  51. #define DL_TX_DET_GPIO_Port GPIOA
  52. #define DL_RX_DET_Pin GPIO_PIN_1
  53. #define DL_RX_DET_GPIO_Port GPIOA
  54. #define DC_FAIL_ALARM_Pin GPIO_PIN_2
  55. #define DC_FAIL_ALARM_GPIO_Port GPIOA
  56. #define PAU_TEMP_Pin GPIO_PIN_3
  57. #define PAU_TEMP_GPIO_Port GPIOA
  58. #define PAU_RESERVED0_Pin GPIO_PIN_6
  59. #define PAU_RESERVED0_GPIO_Port GPIOA
  60. #define PAU_RESERVED1_Pin GPIO_PIN_7
  61. #define PAU_RESERVED1_GPIO_Port GPIOA
  62. #define PAU_RESERVED3_Pin GPIO_PIN_0
  63. #define PAU_RESERVED3_GPIO_Port GPIOB
  64. #define PAU_RESERVED2_Pin GPIO_PIN_1
  65. #define PAU_RESERVED2_GPIO_Port GPIOB
  66. #define OVER_POWER_ALARM_Pin GPIO_PIN_12
  67. #define OVER_POWER_ALARM_GPIO_Port GPIOB
  68. #define VSWR_ALARM_Pin GPIO_PIN_13
  69. #define VSWR_ALARM_GPIO_Port GPIOB
  70. #define PAU_RESET_Pin GPIO_PIN_14
  71. #define PAU_RESET_GPIO_Port GPIOB
  72. #define PAU_EN_Pin GPIO_PIN_15
  73. #define PAU_EN_GPIO_Port GPIOB
  74. #define AMP_EN_Pin GPIO_PIN_8
  75. #define AMP_EN_GPIO_Port GPIOA
  76. #define OVER_INPUT_ALARM_Pin GPIO_PIN_11
  77. #define OVER_INPUT_ALARM_GPIO_Port GPIOA
  78. #define OVER_TEMP_ALARM_Pin GPIO_PIN_12
  79. #define OVER_TEMP_ALARM_GPIO_Port GPIOA
  80. #define ALC_ALARM_Pin GPIO_PIN_3
  81. #define ALC_ALARM_GPIO_Port GPIOB
  82. /* USER CODE BEGIN Private defines */
  83. /* USER CODE END Private defines */
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87. #endif /* __MAIN_H */
  88. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/