/* initialize TIMER init parameter struct with a default value  */
void timer_struct_para_init(timer_parameter_struct *initpara)
/* initialize TIMER init parameter struct with a default value  */
void timer_struct_para_init(timer_parameter_struct *initpara)
{
    initpara->prescaler         = 0U;
    initpara->alignedmode       = TIMER_COUNTER_EDGE;
    initpara->counterdirection  = TIMER_COUNTER_UP;
    initpara->period            = 65535U;
    initpara->clockdivision     = TIMER_CKDIV_DIV1;
    initpara->repetitioncounter = 0U;
}