main(6306).h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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) 2024 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 "stm32f1xx_hal.h"
  28. /* Private includes ----------------------------------------------------------*/
  29. /* USER CODE BEGIN Includes */
  30. #include "inv_mpu.h"
  31. #include "atk_ms6050.h"
  32. #include "flash.h"
  33. #include "EC800.h"
  34. /* USER CODE END Includes */
  35. /* Exported types ------------------------------------------------------------*/
  36. /* USER CODE BEGIN ET */
  37. /* USER CODE END ET */
  38. /* Exported constants --------------------------------------------------------*/
  39. /* USER CODE BEGIN EC */
  40. /* USER CODE END EC */
  41. /* Exported macro ------------------------------------------------------------*/
  42. /* USER CODE BEGIN EM */
  43. /* USER CODE END EM */
  44. /* Exported functions prototypes ---------------------------------------------*/
  45. void Error_Handler(void);
  46. /* USER CODE BEGIN EFP */
  47. /* USER CODE END EFP */
  48. /* Private defines -----------------------------------------------------------*/
  49. #define EN_4G_Pin GPIO_PIN_14
  50. #define EN_4G_GPIO_Port GPIOE
  51. #define RST_4G_Pin GPIO_PIN_15
  52. #define RST_4G_GPIO_Port GPIOE
  53. #define LED_R_Pin GPIO_PIN_8
  54. #define LED_R_GPIO_Port GPIOD
  55. #define LED_G_Pin GPIO_PIN_9
  56. #define LED_G_GPIO_Port GPIOD
  57. #define LED_Y_Pin GPIO_PIN_10
  58. #define LED_Y_GPIO_Port GPIOD
  59. #define OneWireCommuation_Pin GPIO_PIN_8
  60. #define OneWireCommuation_GPIO_Port GPIOA
  61. #define BEEP_Pin GPIO_PIN_0
  62. #define BEEP_GPIO_Port GPIOD
  63. #define LED_Pin GPIO_PIN_5
  64. #define LED_GPIO_Port GPIOB
  65. /* USER CODE BEGIN Private defines */
  66. #define HARD_VERSION "V1.0" // 硬件版本
  67. #define SOFT_VERSION "V1001" // 软件版本
  68. #define DEV_ID "123456789" // 设备唯一编号
  69. #define PROTOCOL_VERSION "V2.0" // 平台通信协议版本
  70. #define DEV_TYPE 4 // 设备类型
  71. /* USER CODE END Private defines */
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75. #endif /* __MAIN_H */