You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.6 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  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. * Copyright (c) 2023 STMicroelectronics.
  11. * All rights reserved.
  12. *
  13. * This software is licensed under terms that can be found in the LICENSE file
  14. * in the root directory of this software component.
  15. * If no LICENSE file comes with this software, it is provided AS-IS.
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __MAIN_H
  22. #define __MAIN_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "stm32f4xx_hal.h"
  28. /* Private includes ----------------------------------------------------------*/
  29. /* USER CODE BEGIN Includes */
  30. #include "usart.h"
  31. #include "tim.h"
  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 DEBUG_LIGHT_Pin GPIO_PIN_2
  48. #define DEBUG_LIGHT_GPIO_Port GPIOE
  49. #define DIS_R1_Pin GPIO_PIN_3
  50. #define DIS_R1_GPIO_Port GPIOA
  51. #define DIS_G1_Pin GPIO_PIN_5
  52. #define DIS_G1_GPIO_Port GPIOA
  53. #define DIS_B1_Pin GPIO_PIN_6
  54. #define DIS_B1_GPIO_Port GPIOA
  55. #define nKEY2_Pin GPIO_PIN_15
  56. #define nKEY2_GPIO_Port GPIOE
  57. #define DIS_R2_Pin GPIO_PIN_10
  58. #define DIS_R2_GPIO_Port GPIOB
  59. #define GENLOCK_Pin GPIO_PIN_8
  60. #define GENLOCK_GPIO_Port GPIOD
  61. #define GENLOCK_EXTI_IRQn EXTI9_5_IRQn
  62. #define nKEY1_Pin GPIO_PIN_0
  63. #define nKEY1_GPIO_Port GPIOD
  64. #define ETH_RST_Pin GPIO_PIN_3
  65. #define ETH_RST_GPIO_Port GPIOD
  66. #define DIS_G2_Pin GPIO_PIN_8
  67. #define DIS_G2_GPIO_Port GPIOB
  68. #define DIS_B2_Pin GPIO_PIN_9
  69. #define DIS_B2_GPIO_Port GPIOB
  70. /* USER CODE BEGIN Private defines */
  71. /* USER CODE END Private defines */
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75. #endif /* __MAIN_H */