main(2408).h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. /* 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 LED_Pin GPIO_PIN_5
  49. #define LED_GPIO_Port GPIOB
  50. /* USER CODE BEGIN Private defines */
  51. #define HARD_VERSION "V1.0"
  52. #define SOFT_VERSION "V1001"
  53. #define DEV_ID "123456789"
  54. #define PROTOCOL_VERSION "V2.0"
  55. #define DEV_TYPE 4
  56. /* USER CODE END Private defines */
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* __MAIN_H */