Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. ******************************************************************************
  3. * @file gpio.h
  4. * @brief This file contains all the function prototypes for
  5. * the gpio.c file
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2023 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __GPIO_H__
  21. #define __GPIO_H__
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "main.h"
  27. /* USER CODE BEGIN Includes */
  28. /* USER CODE END Includes */
  29. /* USER CODE BEGIN Private defines */
  30. #define LED_OFF() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_10, GPIO_PIN_RESET)
  31. #define LED_ON() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_10, GPIO_PIN_SET)
  32. #define LED_TOGGLE() HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_10)
  33. /* USER CODE END Private defines */
  34. void MX_GPIO_Init(void);
  35. /* USER CODE BEGIN Prototypes */
  36. /* USER CODE END Prototypes */
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /*__ GPIO_H__ */
  41. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/