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.

main.h 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 "stm32f4xx_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 B1_Pin GPIO_PIN_13
  47. #define B1_GPIO_Port GPIOC
  48. #define USART_TX_Pin GPIO_PIN_2
  49. #define USART_TX_GPIO_Port GPIOA
  50. #define USART_RX_Pin GPIO_PIN_3
  51. #define USART_RX_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. #define SWO_Pin GPIO_PIN_3
  57. #define SWO_GPIO_Port GPIOB
  58. /* USER CODE BEGIN Private defines */
  59. /* USER CODE END Private defines */
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* __MAIN_H */
  64. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/