main.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /**
  2. ******************************************************************************
  3. * File Name : main.h
  4. * Description : This file contains the common defines of the application
  5. ******************************************************************************
  6. ** This notice applies to any and all portions of this file
  7. * that are not between comment pairs USER CODE BEGIN and
  8. * USER CODE END. Other portions of this file, whether
  9. * inserted by the user or by software development tools
  10. * are owned by their respective copyright owners.
  11. *
  12. * COPYRIGHT(c) 2017 STMicroelectronics
  13. *
  14. * Redistribution and use in source and binary forms, with or without modification,
  15. * are permitted provided that the following conditions are met:
  16. * 1. Redistributions of source code must retain the above copyright notice,
  17. * this list of conditions and the following disclaimer.
  18. * 2. Redistributions in binary form must reproduce the above copyright notice,
  19. * this list of conditions and the following disclaimer in the documentation
  20. * and/or other materials provided with the distribution.
  21. * 3. Neither the name of STMicroelectronics nor the names of its contributors
  22. * may be used to endorse or promote products derived from this software
  23. * without specific prior written permission.
  24. *
  25. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  26. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  28. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  29. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  31. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  32. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  33. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. *
  36. ******************************************************************************
  37. */
  38. /* Define to prevent recursive inclusion -------------------------------------*/
  39. #ifndef __MAIN_H
  40. #define __MAIN_H
  41. /* Includes ------------------------------------------------------------------*/
  42. /* USER CODE BEGIN Includes */
  43. /* USER CODE END Includes */
  44. /* Private define ------------------------------------------------------------*/
  45. #define WC_Pin GPIO_PIN_14
  46. #define WC_GPIO_Port GPIOC
  47. #define MFP_Pin GPIO_PIN_15
  48. #define MFP_GPIO_Port GPIOC
  49. #define S4_Pin GPIO_PIN_0
  50. #define S4_GPIO_Port GPIOA
  51. #define S3_Pin GPIO_PIN_1
  52. #define S3_GPIO_Port GPIOA
  53. #define S2_Pin GPIO_PIN_2
  54. #define S2_GPIO_Port GPIOA
  55. #define S1_Pin GPIO_PIN_3
  56. #define S1_GPIO_Port GPIOA
  57. #define LED_vert_Pin GPIO_PIN_7
  58. #define LED_vert_GPIO_Port GPIOA
  59. #define LED_rouge_Pin GPIO_PIN_4
  60. #define LED_rouge_GPIO_Port GPIOC
  61. #define S9_Pin GPIO_PIN_6
  62. #define S9_GPIO_Port GPIOC
  63. #define S10_Pin GPIO_PIN_7
  64. #define S10_GPIO_Port GPIOC
  65. #define S11_Pin GPIO_PIN_8
  66. #define S11_GPIO_Port GPIOC
  67. #define S12_Pin GPIO_PIN_9
  68. #define S12_GPIO_Port GPIOC
  69. #define S8_Pin GPIO_PIN_6
  70. #define S8_GPIO_Port GPIOB
  71. #define S7_Pin GPIO_PIN_7
  72. #define S7_GPIO_Port GPIOB
  73. #define S6_Pin GPIO_PIN_8
  74. #define S6_GPIO_Port GPIOB
  75. #define S5_Pin GPIO_PIN_9
  76. #define S5_GPIO_Port GPIOB
  77. /* USER CODE BEGIN Private defines */
  78. /* USER CODE END Private defines */
  79. void _Error_Handler(char *, int);
  80. #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
  81. /**
  82. * @}
  83. */
  84. /**
  85. * @}
  86. */
  87. #endif /* __MAIN_H */
  88. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/