main.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 USB_ID_PASSTHRU_Pin GPIO_PIN_5
  52. #define USB_ID_PASSTHRU_GPIO_Port GPIOE
  53. #define UNUSED_PE6_Pin GPIO_PIN_6
  54. #define UNUSED_PE6_GPIO_Port GPIOE
  55. #define nULPI_RESET_Pin GPIO_PIN_2
  56. #define nULPI_RESET_GPIO_Port GPIOA
  57. #define nSPICFG_CS_Pin GPIO_PIN_4
  58. #define nSPICFG_CS_GPIO_Port GPIOA
  59. #define VER_ID1_Pin GPIO_PIN_4
  60. #define VER_ID1_GPIO_Port GPIOC
  61. #define VER_ID2_Pin GPIO_PIN_5
  62. #define VER_ID2_GPIO_Port GPIOC
  63. #define BOOT1_Pin GPIO_PIN_2
  64. #define BOOT1_GPIO_Port GPIOB
  65. #define nTERM_EN_Pin GPIO_PIN_14
  66. #define nTERM_EN_GPIO_Port GPIOB
  67. #define LED_IO_Pin GPIO_PIN_15
  68. #define LED_IO_GPIO_Port GPIOB
  69. #define FPGA_RST_Pin GPIO_PIN_13
  70. #define FPGA_RST_GPIO_Port GPIOD
  71. #define nFGPA_CRESET_B_Pin GPIO_PIN_6
  72. #define nFGPA_CRESET_B_GPIO_Port GPIOC
  73. #define nFGPA_CDONE_Pin GPIO_PIN_7
  74. #define nFGPA_CDONE_GPIO_Port GPIOC
  75. #define OTG_FS_VBUS_UNUSED_Pin GPIO_PIN_9
  76. #define OTG_FS_VBUS_UNUSED_GPIO_Port GPIOA
  77. #define FSMC_UNUSED_CLK_Pin GPIO_PIN_3
  78. #define FSMC_UNUSED_CLK_GPIO_Port GPIOD
  79. #define NWAIT_UNUSED_Pin GPIO_PIN_6
  80. #define NWAIT_UNUSED_GPIO_Port GPIOD
  81. #define nSD_WP_Pin GPIO_PIN_8
  82. #define nSD_WP_GPIO_Port GPIOB
  83. #define nSD_CD_Pin GPIO_PIN_9
  84. #define nSD_CD_GPIO_Port GPIOB
  85. /* USER CODE BEGIN Private defines */
  86. /* USER CODE END Private defines */
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif /* __MAIN_H */
  91. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/