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