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.

95 lines
2.8 KiB

4 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. * <h2><center>&copy; Copyright (c) 2022 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 "stm32f1xx_hal.h"
  29. /* Private includes ----------------------------------------------------------*/
  30. /* USER CODE BEGIN Includes */
  31. /* USER CODE END Includes */
  32. /* Exported types ------------------------------------------------------------*/
  33. /* USER CODE BEGIN ET */
  34. /* USER CODE END ET */
  35. /* Exported constants --------------------------------------------------------*/
  36. /* USER CODE BEGIN EC */
  37. /* USER CODE END EC */
  38. /* Exported macro ------------------------------------------------------------*/
  39. /* USER CODE BEGIN EM */
  40. /* USER CODE END EM */
  41. /* Exported functions prototypes ---------------------------------------------*/
  42. void Error_Handler(void);
  43. /* USER CODE BEGIN EFP */
  44. /* USER CODE END EFP */
  45. /* Private defines -----------------------------------------------------------*/
  46. #define DBG_LED_Pin GPIO_PIN_0
  47. #define DBG_LED_GPIO_Port GPIOA
  48. #define FAN_ON_Pin GPIO_PIN_2
  49. #define FAN_ON_GPIO_Port GPIOA
  50. #define LED0_Pin GPIO_PIN_4
  51. #define LED0_GPIO_Port GPIOA
  52. #define LED1_Pin GPIO_PIN_5
  53. #define LED1_GPIO_Port GPIOA
  54. #define LED2_Pin GPIO_PIN_6
  55. #define LED2_GPIO_Port GPIOA
  56. #define LED3_Pin GPIO_PIN_7
  57. #define LED3_GPIO_Port GPIOA
  58. #define LED_R_Pin GPIO_PIN_3
  59. #define LED_R_GPIO_Port GPIOB
  60. #define LED_G_Pin GPIO_PIN_4
  61. #define LED_G_GPIO_Port GPIOB
  62. #define LED_B_Pin GPIO_PIN_5
  63. #define LED_B_GPIO_Port GPIOB
  64. #define KEY1_Pin GPIO_PIN_6
  65. #define KEY1_GPIO_Port GPIOB
  66. #define KEY2_Pin GPIO_PIN_7
  67. #define KEY2_GPIO_Port GPIOB
  68. #define KEY3_Pin GPIO_PIN_8
  69. #define KEY3_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 */
  76. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/