main.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 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 "stm32f7xx_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 IDE_DD4_Pin GPIO_PIN_4
  47. #define IDE_DD4_GPIO_Port GPIOE
  48. #define IDE_DD5_Pin GPIO_PIN_5
  49. #define IDE_DD5_GPIO_Port GPIOE
  50. #define IDE_DD6_Pin GPIO_PIN_6
  51. #define IDE_DD6_GPIO_Port GPIOE
  52. #define IDE_DIOR_Pin GPIO_PIN_4
  53. #define IDE_DIOR_GPIO_Port GPIOC
  54. #define LED_2_Pin GPIO_PIN_0
  55. #define LED_2_GPIO_Port GPIOB
  56. #define LED_3_Pin GPIO_PIN_1
  57. #define LED_3_GPIO_Port GPIOB
  58. #define IDE_DD7_Pin GPIO_PIN_7
  59. #define IDE_DD7_GPIO_Port GPIOE
  60. #define IDE_DD8_Pin GPIO_PIN_8
  61. #define IDE_DD8_GPIO_Port GPIOE
  62. #define IDE_DD9_Pin GPIO_PIN_9
  63. #define IDE_DD9_GPIO_Port GPIOE
  64. #define IDE_DD10_Pin GPIO_PIN_10
  65. #define IDE_DD10_GPIO_Port GPIOE
  66. #define IDE_DD11_Pin GPIO_PIN_11
  67. #define IDE_DD11_GPIO_Port GPIOE
  68. #define IDE_DD12_Pin GPIO_PIN_12
  69. #define IDE_DD12_GPIO_Port GPIOE
  70. #define IDE_DD13_Pin GPIO_PIN_13
  71. #define IDE_DD13_GPIO_Port GPIOE
  72. #define IDE_DD14_Pin GPIO_PIN_14
  73. #define IDE_DD14_GPIO_Port GPIOE
  74. #define IDE_DD15_Pin GPIO_PIN_15
  75. #define IDE_DD15_GPIO_Port GPIOE
  76. #define IDE_RESET_Pin GPIO_PIN_10
  77. #define IDE_RESET_GPIO_Port GPIOB
  78. #define LED_1_Pin GPIO_PIN_11
  79. #define LED_1_GPIO_Port GPIOB
  80. #define IDE_DA0_Pin GPIO_PIN_8
  81. #define IDE_DA0_GPIO_Port GPIOD
  82. #define IDE_DA1_Pin GPIO_PIN_9
  83. #define IDE_DA1_GPIO_Port GPIOD
  84. #define IDE_DA2_Pin GPIO_PIN_10
  85. #define IDE_DA2_GPIO_Port GPIOD
  86. #define IDE_CS0_Pin GPIO_PIN_8
  87. #define IDE_CS0_GPIO_Port GPIOC
  88. #define IDE_CS1_Pin GPIO_PIN_9
  89. #define IDE_CS1_GPIO_Port GPIOC
  90. #define IDE_DIOW_Pin GPIO_PIN_11
  91. #define IDE_DIOW_GPIO_Port GPIOC
  92. #define IDE_DD0_Pin GPIO_PIN_0
  93. #define IDE_DD0_GPIO_Port GPIOD
  94. #define IDE_DD1_Pin GPIO_PIN_1
  95. #define IDE_DD1_GPIO_Port GPIOD
  96. #define IDE_DD2_Pin GPIO_PIN_2
  97. #define IDE_DD2_GPIO_Port GPIOD
  98. #define IDE_DD3_Pin GPIO_PIN_3
  99. #define IDE_DD3_GPIO_Port GPIOD
  100. #define TXS0108E_OE2_Pin GPIO_PIN_7
  101. #define TXS0108E_OE2_GPIO_Port GPIOB
  102. #define TXS0108E_OE_Pin GPIO_PIN_8
  103. #define TXS0108E_OE_GPIO_Port GPIOB
  104. #define LED_4_Pin GPIO_PIN_9
  105. #define LED_4_GPIO_Port GPIOB
  106. /* USER CODE BEGIN Private defines */
  107. /* USER CODE END Private defines */
  108. #ifdef __cplusplus
  109. }
  110. #endif
  111. #endif /* __MAIN_H */