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.

82 lines
2.3 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 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 ENCODER_LIGHT_Pin GPIO_PIN_9
  50. #define ENCODER_LIGHT_GPIO_Port GPIOF
  51. #define KEY1_Pin GPIO_PIN_15
  52. #define KEY1_GPIO_Port GPIOE
  53. #define GENLOCK_Pin GPIO_PIN_8
  54. #define GENLOCK_GPIO_Port GPIOD
  55. #define KEY0_Pin GPIO_PIN_0
  56. #define KEY0_GPIO_Port GPIOD
  57. #define ETH_RST_Pin GPIO_PIN_3
  58. #define ETH_RST_GPIO_Port GPIOD
  59. /* USER CODE BEGIN Private defines */
  60. /* USER CODE END Private defines */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif /* __MAIN_H */