main.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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) 2024 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 "stm32f1xx_hal.h"
  28. #include "stm32f1xx_ll_bus.h"
  29. #include "stm32f1xx_ll_cortex.h"
  30. #include "stm32f1xx_ll_dma.h"
  31. #include "stm32f1xx_ll_exti.h"
  32. #include "stm32f1xx_ll_gpio.h"
  33. #include "stm32f1xx_ll_pwr.h"
  34. #include "stm32f1xx_ll_rcc.h"
  35. #include "stm32f1xx_ll_system.h"
  36. #include "stm32f1xx_ll_usart.h"
  37. #include "stm32f1xx_ll_utils.h"
  38. /* Private includes ----------------------------------------------------------*/
  39. /* USER CODE BEGIN Includes */
  40. /* USER CODE END Includes */
  41. /* Exported types ------------------------------------------------------------*/
  42. /* USER CODE BEGIN ET */
  43. /* USER CODE END ET */
  44. /* Exported constants --------------------------------------------------------*/
  45. /* USER CODE BEGIN EC */
  46. /* USER CODE END EC */
  47. /* Exported macro ------------------------------------------------------------*/
  48. /* USER CODE BEGIN EM */
  49. /* USER CODE END EM */
  50. /* Exported functions prototypes ---------------------------------------------*/
  51. void Error_Handler(void);
  52. /* USER CODE BEGIN EFP */
  53. /* USER CODE END EFP */
  54. /* Private defines -----------------------------------------------------------*/
  55. #define LED_02_Pin GPIO_PIN_6
  56. #define LED_02_GPIO_Port GPIOC
  57. #define LED_01_Pin GPIO_PIN_7
  58. #define LED_01_GPIO_Port GPIOC
  59. #define KEY_01_Pin GPIO_PIN_8
  60. #define KEY_01_GPIO_Port GPIOC
  61. #define KEY_02_Pin GPIO_PIN_9
  62. #define KEY_02_GPIO_Port GPIOC
  63. /* USER CODE BEGIN Private defines */
  64. /* USER CODE END Private defines */
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif /* __MAIN_H */