Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

main.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. #define pkt_kprintf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
  33. #define rt_kprintf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
  34. typedef uint32_t rt_uint32_t;
  35. /* USER CODE END Includes */
  36. /* Exported types ------------------------------------------------------------*/
  37. /* USER CODE BEGIN ET */
  38. /* USER CODE END ET */
  39. /* Exported constants --------------------------------------------------------*/
  40. /* USER CODE BEGIN EC */
  41. /* USER CODE END EC */
  42. /* Exported macro ------------------------------------------------------------*/
  43. /* USER CODE BEGIN EM */
  44. /* USER CODE END EM */
  45. /* Exported functions prototypes ---------------------------------------------*/
  46. void Error_Handler(void);
  47. /* USER CODE BEGIN EFP */
  48. /* USER CODE END EFP */
  49. /* Private defines -----------------------------------------------------------*/
  50. /* USER CODE BEGIN Private defines */
  51. /* USER CODE END Private defines */
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* __MAIN_H */
  56. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/