main.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. ******************************************************************************
  3. * @file : main.h
  4. * @brief : Header for main.c file.
  5. * This file contains the common defines of the application.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. #ifndef __MAIN_H
  20. #define __MAIN_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #include "stm32f4xx_hal.h"
  25. void Error_Handler(void);
  26. #define GREEN_LED_Pin GPIO_PIN_12
  27. #define GREEN_LED_GPIO_Port GPIOD
  28. #define ORANGE_LED_Pin GPIO_PIN_13
  29. #define ORANGE_LED_GPIO_Port GPIOD
  30. #define RED_LED_Pin GPIO_PIN_14
  31. #define RED_LED_GPIO_Port GPIOD
  32. #define BLUE_LED_Pin GPIO_PIN_15
  33. #define BLUE_LED_GPIO_Port GPIOD
  34. #define TARGET_RST_Pin GPIO_PIN_4
  35. #define TARGET_RST_GPIO_Port GPIOB
  36. #define TARGET_IO0_Pin GPIO_PIN_5
  37. #define TARGET_IO0_GPIO_Port GPIOB
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __MAIN_H */
  42. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/