/* Enables or disables the TIMx peripheral Preload register on CCDAT1.  */
void TIM_ConfigOc1Preload(TIM_Module *TIMx, uint16_t TIM_OCPreload)
/* Enables or disables the TIMx peripheral Preload register on CCDAT1.  */
void TIM_ConfigOc1Preload(TIM_Module *TIMx, uint16_t TIM_OCPreload)
{
    uint16_t tmpccmr1 = 0;
    assert_param(IsTimList8Module(TIMx));
    assert_param(IsTimOcPreLoadState(TIM_OCPreload));
    tmpccmr1 = TIMx->CCMOD1;
    tmpccmr1 &= (uint16_t) ~((uint16_t)TIM_CCMOD1_OC1PEN);
    tmpccmr1 |= TIM_OCPreload;
    TIMx->CCMOD1 = tmpccmr1;
}