/* initialize TIMER channel output parameter struct with a default value  */
void timer_channel_output_struct_para_init(timer_oc_parameter_struct *ocpara)
/* initialize TIMER channel output parameter struct with a default value  */
void timer_channel_output_struct_para_init(timer_oc_parameter_struct *ocpara)
{
    ocpara->outputstate  = (uint16_t)TIMER_CCX_DISABLE;
    ocpara->outputnstate = TIMER_CCXN_DISABLE;
    ocpara->ocpolarity   = TIMER_OC_POLARITY_HIGH;
    ocpara->ocnpolarity  = TIMER_OCN_POLARITY_HIGH;
    ocpara->ocidlestate  = TIMER_OC_IDLE_STATE_LOW;
    ocpara->ocnidlestate = TIMER_OCN_IDLE_STATE_LOW;
}