CubeMon-Vue-Demo-STM32F407VGT6U
main.h
Go to the documentation of this file.
1/* USER CODE BEGIN Header */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __MAIN_H
23#define __MAIN_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "stm32f4xx_hal.h"
31
32/* Private includes ----------------------------------------------------------*/
33/* USER CODE BEGIN Includes */
34
35/* USER CODE END Includes */
36
37/* Exported types ------------------------------------------------------------*/
38/* USER CODE BEGIN ET */
39
40/* USER CODE END ET */
41
42/* Exported constants --------------------------------------------------------*/
43/* USER CODE BEGIN EC */
44
45/* USER CODE END EC */
46
47/* Exported macro ------------------------------------------------------------*/
48/* USER CODE BEGIN EM */
49
50/* USER CODE END EM */
51
52void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
53
54/* Exported functions prototypes ---------------------------------------------*/
55void Error_Handler(void);
56
57/* USER CODE BEGIN EFP */
58
59/* USER CODE END EFP */
60
61/* Private defines -----------------------------------------------------------*/
62#define BUTTON_Pin GPIO_PIN_0
63#define BUTTON_GPIO_Port GPIOA
64#define DO_1_Pin GPIO_PIN_0
65#define DO_1_GPIO_Port GPIOB
66#define DO_2_Pin GPIO_PIN_1
67#define DO_2_GPIO_Port GPIOB
68#define DI_1_Pin GPIO_PIN_7
69#define DI_1_GPIO_Port GPIOE
70#define DI_2_Pin GPIO_PIN_8
71#define DI_2_GPIO_Port GPIOE
72#define DIODE_PWM_GREEN_Pin GPIO_PIN_12
73#define DIODE_PWM_GREEN_GPIO_Port GPIOD
74#define DIODE_DO_ORANGE_Pin GPIO_PIN_13
75#define DIODE_DO_ORANGE_GPIO_Port GPIOD
76#define DIODE_DO_RED_Pin GPIO_PIN_14
77#define DIODE_DO_RED_GPIO_Port GPIOD
78#define DIODE_DO_BLUE_Pin GPIO_PIN_15
79#define DIODE_DO_BLUE_GPIO_Port GPIOD
80/* USER CODE BEGIN Private defines */
81#define ALLOW_CUBEMX_OVERWRITE
82#define ALLOW_CUBEMX_BACKDOOR
83
84#define USE_WATCHDOG
85/* USER CODE END Private defines */
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* __MAIN_H */
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition: main.c:558
void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim)
Definition: stm32f4xx_hal_msp.c:377