您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

main.h 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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) 2023 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under Ultimate Liberty license
  14. * SLA0044, the "License"; You may not use this file except in compliance with
  15. * the License. You may obtain a copy of the License at:
  16. * www.st.com/SLA0044
  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 "stm32f1xx_hal.h"
  29. /* Private includes ----------------------------------------------------------*/
  30. /* USER CODE BEGIN Includes */
  31. #include "SEGGER_RTT.h"
  32. extern void __kprintf(char *fmt, ...);
  33. #define pkt_kprintf(fmt, ...) __kprintf(fmt, ##__VA_ARGS__) //SEGGER_RTT_printf(0, __VA_ARGS__)
  34. #define rt_kprintf(fmt, ...) __kprintf(fmt, ##__VA_ARGS__) //SEGGER_RTT_printf(0, __VA_ARGS__)
  35. typedef uint32_t rt_uint32_t;
  36. /* USER CODE END Includes */
  37. /* Exported types ------------------------------------------------------------*/
  38. /* USER CODE BEGIN ET */
  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. /* USER CODE BEGIN Private defines */
  52. /* USER CODE END Private defines */
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif /* __MAIN_H */
  57. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/