main.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. ******************************************************************************
  3. * File Name : main.h
  4. * Description : This file contains the common defines of the application
  5. ******************************************************************************
  6. *
  7. * Copyright (c) 2017 STMicroelectronics International N.V.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted, provided that the following conditions are met:
  12. *
  13. * 1. Redistribution of source code must retain the above copyright notice,
  14. * this list of conditions and the following disclaimer.
  15. * 2. Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. * 3. Neither the name of STMicroelectronics nor the names of other
  19. * contributors to this software may be used to endorse or promote products
  20. * derived from this software without specific written permission.
  21. * 4. This software, including modifications and/or derivative works of this
  22. * software, must execute solely and exclusively on microcontroller or
  23. * microprocessor devices manufactured by or for STMicroelectronics.
  24. * 5. Redistribution and use of this software other than as permitted under
  25. * this license is void and will automatically terminate your rights under
  26. * this license.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
  29. * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
  30. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  31. * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
  32. * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
  33. * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  34. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  36. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  37. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  38. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  39. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. *
  41. ******************************************************************************
  42. */
  43. /* Define to prevent recursive inclusion -------------------------------------*/
  44. #ifndef __MAIN_H
  45. #define __MAIN_H
  46. /* Includes ------------------------------------------------------------------*/
  47. /* USER CODE BEGIN Includes */
  48. /* USER CODE END Includes */
  49. /* Private define ------------------------------------------------------------*/
  50. #define S8_Pin GPIO_PIN_13
  51. #define S8_GPIO_Port GPIOC
  52. #define S9_Pin GPIO_PIN_14
  53. #define S9_GPIO_Port GPIOC
  54. #define S10_Pin GPIO_PIN_15
  55. #define S10_GPIO_Port GPIOC
  56. #define S11_Pin GPIO_PIN_0
  57. #define S11_GPIO_Port GPIOF
  58. #define S12_Pin GPIO_PIN_1
  59. #define S12_GPIO_Port GPIOF
  60. #define mfp_Pin GPIO_PIN_0
  61. #define mfp_GPIO_Port GPIOA
  62. #define WC_Pin GPIO_PIN_3
  63. #define WC_GPIO_Port GPIOA
  64. #define S1_Pin GPIO_PIN_3
  65. #define S1_GPIO_Port GPIOB
  66. #define S2_Pin GPIO_PIN_4
  67. #define S2_GPIO_Port GPIOB
  68. #define S3_Pin GPIO_PIN_5
  69. #define S3_GPIO_Port GPIOB
  70. #define S4_Pin GPIO_PIN_6
  71. #define S4_GPIO_Port GPIOB
  72. #define S5_Pin GPIO_PIN_7
  73. #define S5_GPIO_Port GPIOB
  74. #define S6_Pin GPIO_PIN_8
  75. #define S6_GPIO_Port GPIOB
  76. #define S7_Pin GPIO_PIN_9
  77. #define S7_GPIO_Port GPIOB
  78. /* USER CODE BEGIN Private defines */
  79. /* USER CODE END Private defines */
  80. /**
  81. * @}
  82. */
  83. /**
  84. * @}
  85. */
  86. #endif /* __MAIN_H */
  87. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/