firmware-latest/platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Configures the: Break feature, dead time, Lock level, the OSSI,
  *         the OSSR State and the AOE(automatic output enable).
  * @param  TIMx: where x can be  1 or 8 to select the TIM
  * @param  TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that
  *         contains the BDTR Register configuration  information for the TIM peripheral.
  * @retval None
  */
@brief  Configures the: Break feature, dead time, Lock level, the OSSI,
the OSSR State and the AOE(automatic output enable).
@param  TIMx: where x can be  1 or 8 to select the TIM
@param  TIM_BDTRInitStruct: pointer to a TIM_BDTRInitTypeDef structure that
contains the BDTR Register configuration  information for the TIM peripheral.
@retval None
@brief Configures the : Break feature dead time Lock level the OSSI the OSSR State and the AOE ( automatic output enable ) . @param TIMx : where x can be 1 or 8 to select the TIM @param TIM_BDTRInitStruct : pointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral . @retval None
void TIM_BDTRConfig(TIM_TypeDef* TIMx, TIM_BDTRInitTypeDef *TIM_BDTRInitStruct)
{
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_TIM_OSSR_STATE(TIM_BDTRInitStruct->TIM_OSSRState));
  assert_param(IS_TIM_OSSI_STATE(TIM_BDTRInitStruct->TIM_OSSIState));
  assert_param(IS_TIM_LOCK_LEVEL(TIM_BDTRInitStruct->TIM_LOCKLevel));
  assert_param(IS_TIM_BREAK_STATE(TIM_BDTRInitStruct->TIM_Break));
  assert_param(IS_TIM_BREAK_POLARITY(TIM_BDTRInitStruct->TIM_BreakPolarity));
  assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(TIM_BDTRInitStruct->TIM_AutomaticOutput));
  TIMx->BDTR = (uint32_t)TIM_BDTRInitStruct->TIM_OSSRState | TIM_BDTRInitStruct->TIM_OSSIState |
             TIM_BDTRInitStruct->TIM_LOCKLevel | TIM_BDTRInitStruct->TIM_DeadTime |
             TIM_BDTRInitStruct->TIM_Break | TIM_BDTRInitStruct->TIM_BreakPolarity |
             TIM_BDTRInitStruct->TIM_AutomaticOutput;
}
void TIM_BDTRConfig ( TIM_TypeDef * TIMx , TIM_BDTRInitTypeDef * TIM_BDTRInitStruct ) { assert_param ( IS_TIM_LIST2_PERIPH ( TIMx ) ) ; assert_param ( IS_TIM_OSSR_STATE ( TIM_BDTRInitStruct -> TIM_OSSRState ) ) ; assert_param ( IS_TIM_OSSI_STATE ( TIM_BDTRInitStruct -> TIM_OSSIState ) ) ; assert_param ( IS_TIM_LOCK_LEVEL ( TIM_BDTRInitStruct -> TIM_LOCKLevel ) ) ; assert_param ( IS_TIM_BREAK_STATE ( TIM_BDTRInitStruct -> TIM_Break ) ) ; assert_param ( IS_TIM_BREAK_POLARITY ( TIM_BDTRInitStruct -> TIM_BreakPolarity ) ) ; assert_param ( IS_TIM_AUTOMATIC_OUTPUT_STATE ( TIM_BDTRInitStruct -> TIM_AutomaticOutput ) ) ; TIMx -> BDTR = ( uint32_t ) TIM_BDTRInitStruct -> TIM_OSSRState | TIM_BDTRInitStruct -> TIM_OSSIState | TIM_BDTRInitStruct -> TIM_LOCKLevel | TIM_BDTRInitStruct -> TIM_DeadTime | TIM_BDTRInitStruct -> TIM_Break | TIM_BDTRInitStruct -> TIM_BreakPolarity | TIM_BDTRInitStruct -> TIM_AutomaticOutput ; }
@brief  Configures the: Break feature, dead time, Lock level, the OSSI,
         the OSSR State and the AOE(automatic output enable).
@brief Configures the : Break feature dead time Lock level the OSSI the OSSR State and the AOE ( automatic output enable ) .
/* Check the parameters */ /* Set the Lock level, the Break enable Bit and the Ploarity, the OSSR State,
     the OSSI State, the dead time value and the Automatic Output Enable Bit */