選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

main.h 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #if 0
  32. #include "SEGGER_RTT.h"
  33. extern void __kprintf(char *fmt, ...) __attribute__((format(printf, 1, 2)));
  34. #define pkt_kprintf(fmt, ...) __kprintf(fmt, ##__VA_ARGS__) //SEGGER_RTT_printf(0, __VA_ARGS__)
  35. #define rt_kprintf(fmt, ...) __kprintf(fmt, ##__VA_ARGS__) //SEGGER_RTT_printf(0, __VA_ARGS__)
  36. #endif
  37. /* USER CODE END Includes */
  38. /* Exported types ------------------------------------------------------------*/
  39. /* USER CODE BEGIN ET */
  40. /* USER CODE END ET */
  41. /* Exported constants --------------------------------------------------------*/
  42. /* USER CODE BEGIN EC */
  43. /* USER CODE END EC */
  44. /* Exported macro ------------------------------------------------------------*/
  45. /* USER CODE BEGIN EM */
  46. /* USER CODE END EM */
  47. /* Exported functions prototypes ---------------------------------------------*/
  48. void Error_Handler(void);
  49. /* USER CODE BEGIN EFP */
  50. /* USER CODE END EFP */
  51. /* Private defines -----------------------------------------------------------*/
  52. /* USER CODE BEGIN Private defines */
  53. /* USER CODE END Private defines */
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* __MAIN_H */
  58. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/