main.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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) 2020 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. #include "stm32g0xx_ll_system.h"
  30. /* Private includes ----------------------------------------------------------*/
  31. /* USER CODE BEGIN Includes */
  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. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  43. /* Exported functions prototypes ---------------------------------------------*/
  44. void Error_Handler(void);
  45. /* USER CODE BEGIN EFP */
  46. /* USER CODE END EFP */
  47. /* Private defines -----------------------------------------------------------*/
  48. #define MCO_Pin GPIO_PIN_0
  49. #define MCO_GPIO_Port GPIOF
  50. #define LED_GREEN_Pin GPIO_PIN_5
  51. #define LED_GREEN_GPIO_Port GPIOA
  52. #define TMS_Pin GPIO_PIN_13
  53. #define TMS_GPIO_Port GPIOA
  54. #define TCK_Pin GPIO_PIN_14
  55. #define TCK_GPIO_Port GPIOA
  56. /* USER CODE BEGIN Private defines */
  57. /* USER CODE END Private defines */
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __MAIN_H */
  62. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/