main.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 "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_14
  48. #define WC_GPIO_Port GPIOC
  49. #define aquit_Pin GPIO_PIN_0
  50. #define aquit_GPIO_Port GPIOA
  51. #define CMD_Pin GPIO_PIN_1
  52. #define CMD_GPIO_Port GPIOA
  53. #define S1_Pin GPIO_PIN_2
  54. #define S1_GPIO_Port GPIOA
  55. #define S2_Pin GPIO_PIN_3
  56. #define S2_GPIO_Port GPIOA
  57. #define Themp_Pin GPIO_PIN_4
  58. #define Themp_GPIO_Port GPIOA
  59. #define S3_Pin GPIO_PIN_6
  60. #define S3_GPIO_Port GPIOA
  61. #define S4_Pin GPIO_PIN_7
  62. #define S4_GPIO_Port GPIOA
  63. #define S5_Pin GPIO_PIN_0
  64. #define S5_GPIO_Port GPIOB
  65. #define S6_Pin GPIO_PIN_1
  66. #define S6_GPIO_Port GPIOB
  67. #define MFP_Pin GPIO_PIN_2
  68. #define MFP_GPIO_Port GPIOB
  69. #define LED_rouge_Pin GPIO_PIN_12
  70. #define LED_rouge_GPIO_Port GPIOB
  71. #define LED_vert_Pin GPIO_PIN_13
  72. #define LED_vert_GPIO_Port GPIOB
  73. #define LED_Orange_Pin GPIO_PIN_14
  74. #define LED_Orange_GPIO_Port GPIOB
  75. #define S7_Pin GPIO_PIN_6
  76. #define S7_GPIO_Port GPIOB
  77. #define S8_Pin GPIO_PIN_7
  78. #define S8_GPIO_Port GPIOB
  79. #define S9_Pin GPIO_PIN_8
  80. #define S9_GPIO_Port GPIOB
  81. #define S10_Pin GPIO_PIN_9
  82. #define S10_GPIO_Port GPIOB
  83. /* USER CODE BEGIN Private defines */
  84. /* USER CODE END Private defines */
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif /* __MAIN_H */
  89. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/