main.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. #include <stdint.h>
  32. /* USER CODE END Includes */
  33. /* Exported types ------------------------------------------------------------*/
  34. /* USER CODE BEGIN ET */
  35. /* USER CODE END ET */
  36. /* Exported constants --------------------------------------------------------*/
  37. /* USER CODE BEGIN EC */
  38. /* USER CODE END EC */
  39. /* Exported macro ------------------------------------------------------------*/
  40. /* USER CODE BEGIN EM */
  41. extern ADC_HandleTypeDef hadc1;
  42. extern DMA_HandleTypeDef hdma_adc1;
  43. /* USER CODE END EM */
  44. /* Exported functions prototypes ---------------------------------------------*/
  45. void Error_Handler(void);
  46. /* USER CODE BEGIN EFP */
  47. /* USER CODE END EFP */
  48. /* Private defines -----------------------------------------------------------*/
  49. #define BOOT_LED_Pin GPIO_PIN_15
  50. #define BOOT_LED_GPIO_Port GPIOC
  51. #define DL_TX_DET_Pin GPIO_PIN_0
  52. #define DL_TX_DET_GPIO_Port GPIOA
  53. #define DL_RX_DET_Pin GPIO_PIN_1
  54. #define DL_RX_DET_GPIO_Port GPIOA
  55. #define DC_FAIL_ALARM_Pin GPIO_PIN_2
  56. #define DC_FAIL_ALARM_GPIO_Port GPIOA
  57. #define PAU_TEMP_Pin GPIO_PIN_3
  58. #define PAU_TEMP_GPIO_Port GPIOA
  59. #define PAU_RESERVED0_Pin GPIO_PIN_6
  60. #define PAU_RESERVED0_GPIO_Port GPIOA
  61. #define PAU_RESERVED1_Pin GPIO_PIN_7
  62. #define PAU_RESERVED1_GPIO_Port GPIOA
  63. #define PAU_RESERVED3_Pin GPIO_PIN_0
  64. #define PAU_RESERVED3_GPIO_Port GPIOB
  65. #define PAU_RESERVED2_Pin GPIO_PIN_1
  66. #define PAU_RESERVED2_GPIO_Port GPIOB
  67. #define OVER_POWER_ALARM_Pin GPIO_PIN_12
  68. #define OVER_POWER_ALARM_GPIO_Port GPIOB
  69. #define VSWR_ALARM_Pin GPIO_PIN_13
  70. #define VSWR_ALARM_GPIO_Port GPIOB
  71. #define PAU_RESET_Pin GPIO_PIN_14
  72. #define PAU_RESET_GPIO_Port GPIOB
  73. #define PAU_EN_Pin GPIO_PIN_15
  74. #define PAU_EN_GPIO_Port GPIOB
  75. #define AMP_EN_Pin GPIO_PIN_8
  76. #define AMP_EN_GPIO_Port GPIOA
  77. #define OVER_INPUT_ALARM_Pin GPIO_PIN_11
  78. #define OVER_INPUT_ALARM_GPIO_Port GPIOA
  79. #define OVER_TEMP_ALARM_Pin GPIO_PIN_12
  80. #define OVER_TEMP_ALARM_GPIO_Port GPIOA
  81. #define ALC_ALARM_Pin GPIO_PIN_3
  82. #define ALC_ALARM_GPIO_Port GPIOB
  83. /* USER CODE BEGIN Private defines */
  84. /* USER CODE END Private defines */
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif /* __MAIN_H */
  89. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/