main.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under BSD 3-Clause license,
  14. * the "License"; You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  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 <stdbool.h>
  32. #include "uart.h"
  33. #include "CRC16.h"
  34. #include "flash.h"
  35. #include "bootloader.h"
  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. extern volatile uint32_t UartTimerCnt;
  46. extern volatile uint32_t FirmwareTimerCnt;
  47. /* USER CODE END EM */
  48. /* Exported functions prototypes ---------------------------------------------*/
  49. void Error_Handler(void);
  50. /* USER CODE BEGIN EFP */
  51. /* USER CODE END EFP */
  52. /* Private defines -----------------------------------------------------------*/
  53. #define BOOT_LED_Pin GPIO_PIN_14
  54. #define BOOT_LED_GPIO_Port GPIOG
  55. /* USER CODE BEGIN Private defines */
  56. /* USER CODE END Private defines */
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* __MAIN_H */
  61. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/