main.h 7.2 KB

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