This function enables the peripheral clocks on required GPIOs and configures PA.08 (TIM1_CH1), PA.07 (TIM1_CH1N), PA.09 (TIM1_CH2), PB.00 (TIM1_CH2N), PA.10 (TIM1_CH3), PB.01 (TIM1_CH3N) and PA.06 (TIM1_BKIN).
This function enables the peripheral clock on TIM1, configures the TIM1 counter in center-aligned mode, configures the output channels to generate complementary PWM signals with 4 us dead-time insertion, configures the break function, sets the lock level and starts output signals generation.
@file Examples_LL/TIM/TIM_BreakAndDeadtime/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 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.
@file Examples_LL/TIM/TIM_BreakAndDeadtime/Inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 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.
Dependencies
TIM_BreakAndDeadtime depends on the following libraries: