main.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  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. /* USER CODE END EM */
  41. /* Exported functions prototypes ---------------------------------------------*/
  42. void Error_Handler(void);
  43. /* USER CODE BEGIN EFP */
  44. /* USER CODE END EFP */
  45. /* Private defines -----------------------------------------------------------*/
  46. #define ATT_EN_1_8G_DL1_Pin GPIO_PIN_2
  47. #define ATT_EN_1_8G_DL1_GPIO_Port GPIOE
  48. #define ATT_EN_1_8G_DL2_Pin GPIO_PIN_3
  49. #define ATT_EN_1_8G_DL2_GPIO_Port GPIOE
  50. #define ATT_EN_1_8G_UL1_Pin GPIO_PIN_4
  51. #define ATT_EN_1_8G_UL1_GPIO_Port GPIOE
  52. #define ATT_EN_1_8G_UL2_Pin GPIO_PIN_5
  53. #define ATT_EN_1_8G_UL2_GPIO_Port GPIOE
  54. #define ATT_EN_1_8G_UL3_Pin GPIO_PIN_6
  55. #define ATT_EN_1_8G_UL3_GPIO_Port GPIOE
  56. #define ATT_EN_1_8G_UL4_Pin GPIO_PIN_13
  57. #define ATT_EN_1_8G_UL4_GPIO_Port GPIOC
  58. #define PATH_EN_1_8G_DL_Pin GPIO_PIN_14
  59. #define PATH_EN_1_8G_DL_GPIO_Port GPIOC
  60. #define PATH_EN_1_8G_UL_Pin GPIO_PIN_15
  61. #define PATH_EN_1_8G_UL_GPIO_Port GPIOC
  62. #define PLL_EN_1_8G_DL_Pin GPIO_PIN_0
  63. #define PLL_EN_1_8G_DL_GPIO_Port GPIOF
  64. #define PLL_EN_1_8G_UL_Pin GPIO_PIN_1
  65. #define PLL_EN_1_8G_UL_GPIO_Port GPIOF
  66. #define PLL_LD_1_8G_DL_Pin GPIO_PIN_2
  67. #define PLL_LD_1_8G_DL_GPIO_Port GPIOF
  68. #define PLL_LD_1_8G_UL_Pin GPIO_PIN_3
  69. #define PLL_LD_1_8G_UL_GPIO_Port GPIOF
  70. #define ATT_EN_2_1G_DL1_Pin GPIO_PIN_4
  71. #define ATT_EN_2_1G_DL1_GPIO_Port GPIOF
  72. #define ATT_EN_2_1G_DL2_Pin GPIO_PIN_5
  73. #define ATT_EN_2_1G_DL2_GPIO_Port GPIOF
  74. #define ATT_EN_2_1G_UL1_Pin GPIO_PIN_6
  75. #define ATT_EN_2_1G_UL1_GPIO_Port GPIOF
  76. #define ATT_EN_2_1G_UL2_Pin GPIO_PIN_7
  77. #define ATT_EN_2_1G_UL2_GPIO_Port GPIOF
  78. #define ATT_EN_2_1G_UL3_Pin GPIO_PIN_8
  79. #define ATT_EN_2_1G_UL3_GPIO_Port GPIOF
  80. #define ATT_EN_2_1G_UL4_Pin GPIO_PIN_9
  81. #define ATT_EN_2_1G_UL4_GPIO_Port GPIOF
  82. #define DET_3_5G_UL_IN_Pin GPIO_PIN_0
  83. #define DET_3_5G_UL_IN_GPIO_Port GPIOC
  84. #define DET_3_5G_UL_OUT_Pin GPIO_PIN_1
  85. #define DET_3_5G_UL_OUT_GPIO_Port GPIOC
  86. #define RFU_TEMP_Pin GPIO_PIN_2
  87. #define RFU_TEMP_GPIO_Port GPIOC
  88. #define _28V_DET_Pin GPIO_PIN_3
  89. #define _28V_DET_GPIO_Port GPIOC
  90. #define DET_1_8G_DL_IN_Pin GPIO_PIN_0
  91. #define DET_1_8G_DL_IN_GPIO_Port GPIOA
  92. #define DET_1_8G_DL_OUT_Pin GPIO_PIN_1
  93. #define DET_1_8G_DL_OUT_GPIO_Port GPIOA
  94. #define DET_1_8G_UL_IN_Pin GPIO_PIN_2
  95. #define DET_1_8G_UL_IN_GPIO_Port GPIOA
  96. #define DET_1_8G_UL_OUT_Pin GPIO_PIN_3
  97. #define DET_1_8G_UL_OUT_GPIO_Port GPIOA
  98. #define DET_2_1G_DL_IN_Pin GPIO_PIN_4
  99. #define DET_2_1G_DL_IN_GPIO_Port GPIOA
  100. #define DET_2_1G_DL_OUT_Pin GPIO_PIN_5
  101. #define DET_2_1G_DL_OUT_GPIO_Port GPIOA
  102. #define DET_2_1G_UL_IN_Pin GPIO_PIN_6
  103. #define DET_2_1G_UL_IN_GPIO_Port GPIOA
  104. #define DET_2_1G_UL_OUT_Pin GPIO_PIN_7
  105. #define DET_2_1G_UL_OUT_GPIO_Port GPIOA
  106. #define DET_3_5G_DL_IN_Pin GPIO_PIN_0
  107. #define DET_3_5G_DL_IN_GPIO_Port GPIOB
  108. #define DET_3_5G_DL_OUT_Pin GPIO_PIN_1
  109. #define DET_3_5G_DL_OUT_GPIO_Port GPIOB
  110. #define PLL_DATA_Pin GPIO_PIN_8
  111. #define PLL_DATA_GPIO_Port GPIOD
  112. #define PLL_CLK_Pin GPIO_PIN_9
  113. #define PLL_CLK_GPIO_Port GPIOD
  114. #define ATT_DATA_Pin GPIO_PIN_10
  115. #define ATT_DATA_GPIO_Port GPIOD
  116. #define ATT_CLK_Pin GPIO_PIN_11
  117. #define ATT_CLK_GPIO_Port GPIOD
  118. #define ALARM_DC_Pin GPIO_PIN_12
  119. #define ALARM_DC_GPIO_Port GPIOD
  120. #define ALARM_AC_Pin GPIO_PIN_13
  121. #define ALARM_AC_GPIO_Port GPIOD
  122. #define DA_LDAC_Pin GPIO_PIN_15
  123. #define DA_LDAC_GPIO_Port GPIOD
  124. #define DA_SYNC_Pin GPIO_PIN_2
  125. #define DA_SYNC_GPIO_Port GPIOG
  126. #define DA_SCLK_Pin GPIO_PIN_3
  127. #define DA_SCLK_GPIO_Port GPIOG
  128. #define DA_DIN_Pin GPIO_PIN_4
  129. #define DA_DIN_GPIO_Port GPIOG
  130. #define _T_SYNC_UL_Pin GPIO_PIN_5
  131. #define _T_SYNC_UL_GPIO_Port GPIOG
  132. #define T_SYNC_UL_Pin GPIO_PIN_6
  133. #define T_SYNC_UL_GPIO_Port GPIOG
  134. #define _T_SYNC_DL_Pin GPIO_PIN_7
  135. #define _T_SYNC_DL_GPIO_Port GPIOG
  136. #define T_SYNC_DL_Pin GPIO_PIN_8
  137. #define T_SYNC_DL_GPIO_Port GPIOG
  138. #define PLL_EN_3_5G_L_Pin GPIO_PIN_6
  139. #define PLL_EN_3_5G_L_GPIO_Port GPIOC
  140. #define PLL_EN_3_5G_H_Pin GPIO_PIN_7
  141. #define PLL_EN_3_5G_H_GPIO_Port GPIOC
  142. #define PLL_LD_3_5G_L_Pin GPIO_PIN_8
  143. #define PLL_LD_3_5G_L_GPIO_Port GPIOC
  144. #define PLL_LD_3_5G_H_Pin GPIO_PIN_9
  145. #define PLL_LD_3_5G_H_GPIO_Port GPIOC
  146. #define ATT_CLK_3_5G_Pin GPIO_PIN_0
  147. #define ATT_CLK_3_5G_GPIO_Port GPIOD
  148. #define ATT_EN_3_5G_Pin GPIO_PIN_1
  149. #define ATT_EN_3_5G_GPIO_Port GPIOD
  150. #define ATT_DATA_3_5G_DL_Pin GPIO_PIN_2
  151. #define ATT_DATA_3_5G_DL_GPIO_Port GPIOD
  152. #define ATT_DATA_3_5G_UL_Pin GPIO_PIN_3
  153. #define ATT_DATA_3_5G_UL_GPIO_Port GPIOD
  154. #define ATT_DATA_3_5G_COM1_Pin GPIO_PIN_4
  155. #define ATT_DATA_3_5G_COM1_GPIO_Port GPIOD
  156. #define ATT_DATA_3_5G_COM2_Pin GPIO_PIN_5
  157. #define ATT_DATA_3_5G_COM2_GPIO_Port GPIOD
  158. #define ATT_DATA_3_5G_COM3_Pin GPIO_PIN_6
  159. #define ATT_DATA_3_5G_COM3_GPIO_Port GPIOD
  160. #define PATH_EN_3_5G_L_Pin GPIO_PIN_7
  161. #define PATH_EN_3_5G_L_GPIO_Port GPIOD
  162. #define PATH_EN_3_5G_H_Pin GPIO_PIN_9
  163. #define PATH_EN_3_5G_H_GPIO_Port GPIOG
  164. #define PATH_EN_3_5G_DL_Pin GPIO_PIN_10
  165. #define PATH_EN_3_5G_DL_GPIO_Port GPIOG
  166. #define PATH_EN_3_5G_UL_Pin GPIO_PIN_11
  167. #define PATH_EN_3_5G_UL_GPIO_Port GPIOG
  168. #define PLL_ON_OFF_3_5G_L_Pin GPIO_PIN_12
  169. #define PLL_ON_OFF_3_5G_L_GPIO_Port GPIOG
  170. #define PLL_ON_OFF_3_5G_H_Pin GPIO_PIN_13
  171. #define PLL_ON_OFF_3_5G_H_GPIO_Port GPIOG
  172. #define PLL_EN_2_1G_DL_Pin GPIO_PIN_3
  173. #define PLL_EN_2_1G_DL_GPIO_Port GPIOB
  174. #define PLL_EN_2_1G_UL_Pin GPIO_PIN_4
  175. #define PLL_EN_2_1G_UL_GPIO_Port GPIOB
  176. #define PLL_LD_2_1G_DL_Pin GPIO_PIN_5
  177. #define PLL_LD_2_1G_DL_GPIO_Port GPIOB
  178. #define PLL_LD_2_1G_UL_Pin GPIO_PIN_6
  179. #define PLL_LD_2_1G_UL_GPIO_Port GPIOB
  180. #define PATH_EN_2_1G_DL_Pin GPIO_PIN_0
  181. #define PATH_EN_2_1G_DL_GPIO_Port GPIOE
  182. #define PATH_EN_2_1G_UL_Pin GPIO_PIN_1
  183. #define PATH_EN_2_1G_UL_GPIO_Port GPIOE
  184. /* USER CODE BEGIN Private defines */
  185. /* USER CODE END Private defines */
  186. #ifdef __cplusplus
  187. }
  188. #endif
  189. #endif /* __MAIN_H */
  190. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/