main.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 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 FAIL_MBIC_Pin GPIO_PIN_4
  47. #define FAIL_MBIC_GPIO_Port GPIOE
  48. #define BOOT_LED_Pin GPIO_PIN_15
  49. #define BOOT_LED_GPIO_Port GPIOC
  50. #define RFU_TX_Pin GPIO_PIN_2
  51. #define RFU_TX_GPIO_Port GPIOA
  52. #define RFU_RX_Pin GPIO_PIN_3
  53. #define RFU_RX_GPIO_Port GPIOA
  54. #define ATT_CLOCK3_Pin GPIO_PIN_0
  55. #define ATT_CLOCK3_GPIO_Port GPIOG
  56. #define ATT_DATA3_Pin GPIO_PIN_1
  57. #define ATT_DATA3_GPIO_Port GPIOG
  58. #define ATT_CLOCK4_Pin GPIO_PIN_10
  59. #define ATT_CLOCK4_GPIO_Port GPIOE
  60. #define ATT_DATA4_Pin GPIO_PIN_11
  61. #define ATT_DATA4_GPIO_Port GPIOE
  62. #define ATT_EN_DL4_Pin GPIO_PIN_12
  63. #define ATT_EN_DL4_GPIO_Port GPIOE
  64. #define ATT_EN_UL4_Pin GPIO_PIN_13
  65. #define ATT_EN_UL4_GPIO_Port GPIOE
  66. #define PATH_EN_DL4_Pin GPIO_PIN_14
  67. #define PATH_EN_DL4_GPIO_Port GPIOE
  68. #define PATH_EN_UL4_Pin GPIO_PIN_15
  69. #define PATH_EN_UL4_GPIO_Port GPIOE
  70. #define EEPROM_SCL_Pin GPIO_PIN_10
  71. #define EEPROM_SCL_GPIO_Port GPIOB
  72. #define EEPROM_SDA_Pin GPIO_PIN_11
  73. #define EEPROM_SDA_GPIO_Port GPIOB
  74. #define ATT_EN_UL1_Pin GPIO_PIN_14
  75. #define ATT_EN_UL1_GPIO_Port GPIOB
  76. #define PATH_EN_DL1_Pin GPIO_PIN_15
  77. #define PATH_EN_DL1_GPIO_Port GPIOB
  78. #define PATH_EN_DL2_Pin GPIO_PIN_10
  79. #define PATH_EN_DL2_GPIO_Port GPIOD
  80. #define PATH_EN_UL2_Pin GPIO_PIN_11
  81. #define PATH_EN_UL2_GPIO_Port GPIOD
  82. #define LED_ACT_Pin GPIO_PIN_14
  83. #define LED_ACT_GPIO_Port GPIOD
  84. #define ATT_EN_DL3_Pin GPIO_PIN_2
  85. #define ATT_EN_DL3_GPIO_Port GPIOG
  86. #define ATT_EN_UL3_Pin GPIO_PIN_3
  87. #define ATT_EN_UL3_GPIO_Port GPIOG
  88. #define PATH_EN_DL3_Pin GPIO_PIN_4
  89. #define PATH_EN_DL3_GPIO_Port GPIOG
  90. #define PATH_EN_UL3_Pin GPIO_PIN_5
  91. #define PATH_EN_UL3_GPIO_Port GPIOG
  92. #define _PATH_SW1_Pin GPIO_PIN_8
  93. #define _PATH_SW1_GPIO_Port GPIOG
  94. #define PATH_EN_UL1_Pin GPIO_PIN_6
  95. #define PATH_EN_UL1_GPIO_Port GPIOC
  96. #define MBIC_UP_Pin GPIO_PIN_9
  97. #define MBIC_UP_GPIO_Port GPIOA
  98. #define MBIC_DOWN_Pin GPIO_PIN_10
  99. #define MBIC_DOWN_GPIO_Port GPIOA
  100. #define ATT_CLOCK2_Pin GPIO_PIN_2
  101. #define ATT_CLOCK2_GPIO_Port GPIOD
  102. #define ATT_DATA2_Pin GPIO_PIN_3
  103. #define ATT_DATA2_GPIO_Port GPIOD
  104. #define ATT_EN_DL2_Pin GPIO_PIN_4
  105. #define ATT_EN_DL2_GPIO_Port GPIOD
  106. #define ATT_EN_UL2_Pin GPIO_PIN_7
  107. #define ATT_EN_UL2_GPIO_Port GPIOD
  108. #define PATH_SW1_Pin GPIO_PIN_9
  109. #define PATH_SW1_GPIO_Port GPIOG
  110. #define _PATH_SW2_Pin GPIO_PIN_10
  111. #define _PATH_SW2_GPIO_Port GPIOG
  112. #define PATH_SW2_Pin GPIO_PIN_11
  113. #define PATH_SW2_GPIO_Port GPIOG
  114. #define _PATH_SW3_Pin GPIO_PIN_12
  115. #define _PATH_SW3_GPIO_Port GPIOG
  116. #define PATH_SW3_Pin GPIO_PIN_13
  117. #define PATH_SW3_GPIO_Port GPIOG
  118. #define _PATH_SW4_Pin GPIO_PIN_14
  119. #define _PATH_SW4_GPIO_Port GPIOG
  120. #define PATH_SW4_Pin GPIO_PIN_15
  121. #define PATH_SW4_GPIO_Port GPIOG
  122. #define ATT_CLOCK1_Pin GPIO_PIN_6
  123. #define ATT_CLOCK1_GPIO_Port GPIOB
  124. #define ATT_DATA1_Pin GPIO_PIN_7
  125. #define ATT_DATA1_GPIO_Port GPIOB
  126. #define ATT_EN_DL1_Pin GPIO_PIN_9
  127. #define ATT_EN_DL1_GPIO_Port GPIOB
  128. /* USER CODE BEGIN Private defines */
  129. /* USER CODE END Private defines */
  130. #ifdef __cplusplus
  131. }
  132. #endif
  133. #endif /* __MAIN_H */
  134. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/