CubeMon-Vue-Demo-STM32F407VGT6U
main.h File Reference

: Header for main.c file. This file contains the common defines of the application. More...

#include "stm32f4xx_hal.h"

Go to the source code of this file.

Macros

#define BUTTON_Pin   GPIO_PIN_0
 
#define BUTTON_GPIO_Port   GPIOA
 
#define DO_1_Pin   GPIO_PIN_0
 
#define DO_1_GPIO_Port   GPIOB
 
#define DO_2_Pin   GPIO_PIN_1
 
#define DO_2_GPIO_Port   GPIOB
 
#define DI_1_Pin   GPIO_PIN_7
 
#define DI_1_GPIO_Port   GPIOE
 
#define DI_2_Pin   GPIO_PIN_8
 
#define DI_2_GPIO_Port   GPIOE
 
#define DIODE_PWM_GREEN_Pin   GPIO_PIN_12
 
#define DIODE_PWM_GREEN_GPIO_Port   GPIOD
 
#define DIODE_DO_ORANGE_Pin   GPIO_PIN_13
 
#define DIODE_DO_ORANGE_GPIO_Port   GPIOD
 
#define DIODE_DO_RED_Pin   GPIO_PIN_14
 
#define DIODE_DO_RED_GPIO_Port   GPIOD
 
#define DIODE_DO_BLUE_Pin   GPIO_PIN_15
 
#define DIODE_DO_BLUE_GPIO_Port   GPIOD
 
#define ALLOW_CUBEMX_OVERWRITE
 
#define ALLOW_CUBEMX_BACKDOOR
 
#define USE_WATCHDOG
 

Functions

void HAL_TIM_MspPostInit (TIM_HandleTypeDef *htim)
 
void Error_Handler (void)
 This function is executed in case of error occurrence. More...
 

Detailed Description

: Header for main.c file. This file contains the common defines of the application.

Attention

Copyright (c) 2022 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Function Documentation

◆ Error_Handler()

void Error_Handler ( void  )

This function is executed in case of error occurrence.

Return values
None

◆ HAL_TIM_MspPostInit()

void HAL_TIM_MspPostInit ( TIM_HandleTypeDef *  htim)

TIM4 GPIO Configuration PD12 ---—> TIM4_CH1

TIM4 GPIO Configuration PD12 ---—> TIM4_CH1