/* Enables or disables the tim peripheral Preload register on CCR2.  */
void TIM_OC2PreloadConfig(TIM_TypeDef *tim, TIMOCPE_Typedef preload)
/* Enables or disables the tim peripheral Preload register on CCR2.  */
void TIM_OC2PreloadConfig(TIM_TypeDef *tim, TIMOCPE_Typedef preload)
{
    MODIFY_REG(tim->CCMR1, TIM_CCMR1_OC2PEN, preload << 8);
}