训练营PLSR题目
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.
 
 
 
 
 
 

84 line
2.3 KiB

  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) 2025 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 "stm32f4xx_hal.h"
  28. /* Private includes ----------------------------------------------------------*/
  29. /* USER CODE BEGIN Includes */
  30. /* USER CODE END Includes */
  31. /* Exported types ------------------------------------------------------------*/
  32. /* USER CODE BEGIN ET */
  33. extern uint8_t ArrFlag; /* 加速度Flag */
  34. extern float Acc; /* 加速度 */
  35. extern uint8_t PulseNum; /* 脉冲段计数 */
  36. extern uint32_t AllPulseCNT;
  37. extern uint8_t EndFlag;
  38. extern uint8_t FullFlag;
  39. /* USER CODE END ET */
  40. /* Exported constants --------------------------------------------------------*/
  41. /* USER CODE BEGIN EC */
  42. /* USER CODE END EC */
  43. /* Exported macro ------------------------------------------------------------*/
  44. /* USER CODE BEGIN EM */
  45. /* USER CODE END EM */
  46. /* Exported functions prototypes ---------------------------------------------*/
  47. void Error_Handler(void);
  48. /* USER CODE BEGIN EFP */
  49. /* USER CODE END EFP */
  50. /* Private defines -----------------------------------------------------------*/
  51. #define Y15_Pin GPIO_PIN_6
  52. #define Y15_GPIO_Port GPIOH
  53. #define Y14_Pin GPIO_PIN_7
  54. #define Y14_GPIO_Port GPIOH
  55. #define Y13_Pin GPIO_PIN_8
  56. #define Y13_GPIO_Port GPIOH
  57. #define Y12_Pin GPIO_PIN_9
  58. #define Y12_GPIO_Port GPIOH
  59. /* USER CODE BEGIN Private defines */
  60. /* USER CODE END Private defines */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif /* __MAIN_H */