main.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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) 2021 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 "stm32f2xx_hal.h"
  29. #include "stm32f2xx_hal.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 FPGA_GPIO2_Pin GPIO_PIN_2
  48. #define FPGA_GPIO2_GPIO_Port GPIOE
  49. #define FPGA_GPIO3_Pin GPIO_PIN_3
  50. #define FPGA_GPIO3_GPIO_Port GPIOE
  51. #define UNUSED_PE5_Pin GPIO_PIN_5
  52. #define UNUSED_PE5_GPIO_Port GPIOE
  53. #define UNUSED_PE6_Pin GPIO_PIN_6
  54. #define UNUSED_PE6_GPIO_Port GPIOE
  55. #define UNUSED_PC13_Pin GPIO_PIN_13
  56. #define UNUSED_PC13_GPIO_Port GPIOC
  57. #define UNUSED_PC14_Pin GPIO_PIN_14
  58. #define UNUSED_PC14_GPIO_Port GPIOC
  59. #define UNUSED_PC15_Pin GPIO_PIN_15
  60. #define UNUSED_PC15_GPIO_Port GPIOC
  61. #define UNUSED_PC0_Pin GPIO_PIN_0
  62. #define UNUSED_PC0_GPIO_Port GPIOC
  63. #define UNUSED_PC1_Pin GPIO_PIN_1
  64. #define UNUSED_PC1_GPIO_Port GPIOC
  65. #define UNUSED_PC2_Pin GPIO_PIN_2
  66. #define UNUSED_PC2_GPIO_Port GPIOC
  67. #define UNUSED_PC3_Pin GPIO_PIN_3
  68. #define UNUSED_PC3_GPIO_Port GPIOC
  69. #define UNUSED_PA0_Pin GPIO_PIN_0
  70. #define UNUSED_PA0_GPIO_Port GPIOA
  71. #define UNUSED_PA1_Pin GPIO_PIN_1
  72. #define UNUSED_PA1_GPIO_Port GPIOA
  73. #define UNUSED_PA2_Pin GPIO_PIN_2
  74. #define UNUSED_PA2_GPIO_Port GPIOA
  75. #define UNUSED_PA3_Pin GPIO_PIN_3
  76. #define UNUSED_PA3_GPIO_Port GPIOA
  77. #define nSPICFG_CS_Pin GPIO_PIN_4
  78. #define nSPICFG_CS_GPIO_Port GPIOA
  79. #define VER_ID1_Pin GPIO_PIN_4
  80. #define VER_ID1_GPIO_Port GPIOC
  81. #define VER_ID2_Pin GPIO_PIN_5
  82. #define VER_ID2_GPIO_Port GPIOC
  83. #define LED_IO_Pin GPIO_PIN_0
  84. #define LED_IO_GPIO_Port GPIOB
  85. #define nTERM_EN_Pin GPIO_PIN_1
  86. #define nTERM_EN_GPIO_Port GPIOB
  87. #define BOOT1_Pin GPIO_PIN_2
  88. #define BOOT1_GPIO_Port GPIOB
  89. #define UNUSED_PB12_Pin GPIO_PIN_12
  90. #define UNUSED_PB12_GPIO_Port GPIOB
  91. #define UNUSED_PB13_Pin GPIO_PIN_13
  92. #define UNUSED_PB13_GPIO_Port GPIOB
  93. #define UNUSED_PD11_Pin GPIO_PIN_11
  94. #define UNUSED_PD11_GPIO_Port GPIOD
  95. #define FPGA_RST_Pin GPIO_PIN_13
  96. #define FPGA_RST_GPIO_Port GPIOD
  97. #define nFGPA_CRESET_B_Pin GPIO_PIN_6
  98. #define nFGPA_CRESET_B_GPIO_Port GPIOC
  99. #define nFGPA_CDONE_Pin GPIO_PIN_7
  100. #define nFGPA_CDONE_GPIO_Port GPIOC
  101. #define FSMC_UNUSED_CLK_Pin GPIO_PIN_3
  102. #define FSMC_UNUSED_CLK_GPIO_Port GPIOD
  103. #define UNUSED_PB5_Pin GPIO_PIN_5
  104. #define UNUSED_PB5_GPIO_Port GPIOB
  105. #define UNUSED_PB6_Pin GPIO_PIN_6
  106. #define UNUSED_PB6_GPIO_Port GPIOB
  107. #define nSD_WP_Pin GPIO_PIN_8
  108. #define nSD_WP_GPIO_Port GPIOB
  109. #define nSD_CD_Pin GPIO_PIN_9
  110. #define nSD_CD_GPIO_Port GPIOB
  111. /* USER CODE BEGIN Private defines */
  112. /* USER CODE END Private defines */
  113. #ifdef __cplusplus
  114. }
  115. #endif
  116. #endif /* __MAIN_H */
  117. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/