main.h 4.1 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) 2019 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 "stm32f4xx_hal.h"
  29. #include "stm32f4xx_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 wc_Pin GPIO_PIN_15
  48. #define wc_GPIO_Port GPIOC
  49. #define CuveHaut_Pin GPIO_PIN_0
  50. #define CuveHaut_GPIO_Port GPIOC
  51. #define CuveHaut_EXTI_IRQn EXTI0_IRQn
  52. #define ReserveBas_Pin GPIO_PIN_1
  53. #define ReserveBas_GPIO_Port GPIOC
  54. #define ReserveBas_EXTI_IRQn EXTI1_IRQn
  55. #define CapteurAutres2_Pin GPIO_PIN_2
  56. #define CapteurAutres2_GPIO_Port GPIOC
  57. #define CapteurAutres2_EXTI_IRQn EXTI2_IRQn
  58. #define CapteurAutres1_Pin GPIO_PIN_3
  59. #define CapteurAutres1_GPIO_Port GPIOC
  60. #define CapteurAutres1_EXTI_IRQn EXTI3_IRQn
  61. #define TempEau_Pin GPIO_PIN_0
  62. #define TempEau_GPIO_Port GPIOA
  63. #define TempAir_Pin GPIO_PIN_1
  64. #define TempAir_GPIO_Port GPIOA
  65. #define PH_Pin GPIO_PIN_2
  66. #define PH_GPIO_Port GPIOA
  67. #define D7_Pin GPIO_PIN_4
  68. #define D7_GPIO_Port GPIOC
  69. #define D6_Pin GPIO_PIN_5
  70. #define D6_GPIO_Port GPIOC
  71. #define D5_Pin GPIO_PIN_0
  72. #define D5_GPIO_Port GPIOB
  73. #define D4_Pin GPIO_PIN_1
  74. #define D4_GPIO_Port GPIOB
  75. #define E_Pin GPIO_PIN_2
  76. #define E_GPIO_Port GPIOB
  77. #define Left_Pin GPIO_PIN_12
  78. #define Left_GPIO_Port GPIOB
  79. #define Left_EXTI_IRQn EXTI15_10_IRQn
  80. #define Select_Pin GPIO_PIN_13
  81. #define Select_GPIO_Port GPIOB
  82. #define Select_EXTI_IRQn EXTI15_10_IRQn
  83. #define Down_Pin GPIO_PIN_14
  84. #define Down_GPIO_Port GPIOB
  85. #define Down_EXTI_IRQn EXTI15_10_IRQn
  86. #define Right_Pin GPIO_PIN_15
  87. #define Right_GPIO_Port GPIOB
  88. #define Right_EXTI_IRQn EXTI15_10_IRQn
  89. #define UP_Pin GPIO_PIN_6
  90. #define UP_GPIO_Port GPIOC
  91. #define UP_EXTI_IRQn EXTI9_5_IRQn
  92. #define MFP_Pin GPIO_PIN_7
  93. #define MFP_GPIO_Port GPIOC
  94. #define MFP_EXTI_IRQn EXTI9_5_IRQn
  95. #define RS_Pin GPIO_PIN_8
  96. #define RS_GPIO_Port GPIOC
  97. #define R_W_Pin GPIO_PIN_9
  98. #define R_W_GPIO_Port GPIOC
  99. #define ventiloPWM_3_Pin GPIO_PIN_15
  100. #define ventiloPWM_3_GPIO_Port GPIOA
  101. #define ventiloPWM_2_Pin GPIO_PIN_4
  102. #define ventiloPWM_2_GPIO_Port GPIOB
  103. #define ventiloPWM_1_Pin GPIO_PIN_5
  104. #define ventiloPWM_1_GPIO_Port GPIOB
  105. #define TechniqueBas_Pin GPIO_PIN_8
  106. #define TechniqueBas_GPIO_Port GPIOB
  107. #define TechniqueBas_EXTI_IRQn EXTI9_5_IRQn
  108. #define TechniqueHaut_Pin GPIO_PIN_9
  109. #define TechniqueHaut_GPIO_Port GPIOB
  110. #define TechniqueHaut_EXTI_IRQn EXTI9_5_IRQn
  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****/