A PC fan controller that doesn't (completely) suck.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 3 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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) 2021 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 "stm32g0xx_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. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  42. /* Exported functions prototypes ---------------------------------------------*/
  43. void Error_Handler(void);
  44. /* USER CODE BEGIN EFP */
  45. /* USER CODE END EFP */
  46. /* Private defines -----------------------------------------------------------*/
  47. #define Case1_Pin GPIO_PIN_4
  48. #define Case1_GPIO_Port GPIOA
  49. #define Case1_EXTI_IRQn EXTI4_15_IRQn
  50. #define Case2_Pin GPIO_PIN_5
  51. #define Case2_GPIO_Port GPIOA
  52. #define Case2_EXTI_IRQn EXTI4_15_IRQn
  53. #define CPU_Pin GPIO_PIN_6
  54. #define CPU_GPIO_Port GPIOA
  55. #define CPU_EXTI_IRQn EXTI4_15_IRQn
  56. #define GPU_Pin GPIO_PIN_7
  57. #define GPU_GPIO_Port GPIOA
  58. #define GPU_EXTI_IRQn EXTI4_15_IRQn
  59. #define Switch_Pin GPIO_PIN_6
  60. #define Switch_GPIO_Port GPIOB
  61. /* USER CODE BEGIN Private defines */
  62. /* USER CODE END Private defines */
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif /* __MAIN_H */
  67. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/