main.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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) 2019 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. #include <stdio.h>
  32. #include "adf4153.h"
  33. /* USER CODE END Includes */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* USER CODE BEGIN ET */
  36. /* USER CODE END ET */
  37. /* Exported constants --------------------------------------------------------*/
  38. /* USER CODE BEGIN EC */
  39. /* USER CODE END EC */
  40. /* Exported macro ------------------------------------------------------------*/
  41. /* USER CODE BEGIN EM */
  42. /* USER CODE END EM */
  43. /* Exported functions prototypes ---------------------------------------------*/
  44. void Error_Handler(void);
  45. /* USER CODE BEGIN EFP */
  46. /* USER CODE END EFP */
  47. /* Private defines -----------------------------------------------------------*/
  48. #define B1_Pin GPIO_PIN_13
  49. #define B1_GPIO_Port GPIOC
  50. #define B1_EXTI_IRQn EXTI15_10_IRQn
  51. #define USART_TX_Pin GPIO_PIN_2
  52. #define USART_TX_GPIO_Port GPIOA
  53. #define USART_RX_Pin GPIO_PIN_3
  54. #define USART_RX_GPIO_Port GPIOA
  55. #define LD2_Pin GPIO_PIN_5
  56. #define LD2_GPIO_Port GPIOA
  57. #define PLL_EN_Pin GPIO_PIN_5
  58. #define PLL_EN_GPIO_Port GPIOC
  59. #define PLL_DATA_Pin GPIO_PIN_6
  60. #define PLL_DATA_GPIO_Port GPIOC
  61. #define PLL_CLK_Pin GPIO_PIN_8
  62. #define PLL_CLK_GPIO_Port GPIOC
  63. #define TMS_Pin GPIO_PIN_13
  64. #define TMS_GPIO_Port GPIOA
  65. #define TCK_Pin GPIO_PIN_14
  66. #define TCK_GPIO_Port GPIOA
  67. #define SWO_Pin GPIO_PIN_3
  68. #define SWO_GPIO_Port GPIOB
  69. /* USER CODE BEGIN Private defines */
  70. /* USER CODE END Private defines */
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif /* __MAIN_H */
  75. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/