main.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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) 2022 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. {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f1xx_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 DOUT1_Pin GPIO_PIN_2
  47. #define DOUT1_GPIO_Port GPIOA
  48. #define SCK1_Pin GPIO_PIN_3
  49. #define SCK1_GPIO_Port GPIOA
  50. #define DOUT2_Pin GPIO_PIN_4
  51. #define DOUT2_GPIO_Port GPIOA
  52. #define SCK2_Pin GPIO_PIN_5
  53. #define SCK2_GPIO_Port GPIOA
  54. #define DOUT3_Pin GPIO_PIN_6
  55. #define DOUT3_GPIO_Port GPIOA
  56. #define SCK3_Pin GPIO_PIN_7
  57. #define SCK3_GPIO_Port GPIOA
  58. #define DOUT4_Pin GPIO_PIN_0
  59. #define DOUT4_GPIO_Port GPIOB
  60. #define SCK4_Pin GPIO_PIN_1
  61. #define SCK4_GPIO_Port GPIOB
  62. #define LED_Pin GPIO_PIN_9
  63. #define LED_GPIO_Port GPIOB
  64. /* USER CODE BEGIN Private defines */
  65. /* USER CODE END Private defines */
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif /* __MAIN_H */