/* Initializes the TIM5/TIMM05 device, include TIM5/TIMM05 registers and function.  */
void pwmout_timer5_init(pwmout_t *obj)
/* Initializes the TIM5/TIMM05 device, include TIM5/TIMM05 registers and function.  */
void pwmout_timer5_init(pwmout_t *obj)
{
	RTIM_TimeBaseInitTypeDef TIM_InitStruct;
	RTIM_TimeBaseStructInit(&TIM_InitStruct);
	TIM_InitStruct.TIM_Idx = PWM_TIMER;
	RTIM_TimeBaseInit(PWM_TIM[obj->pwm_idx >>BIT_PWM_TIM_IDX_SHIFT], &TIM_InitStruct, TIMER5_IRQ, NULL, (u32)&TIM_InitStruct);
	RTIM_Cmd(PWM_TIM[obj->pwm_idx >>BIT_PWM_TIM_IDX_SHIFT], ENABLE);
	if (obj->pwm_idx & BIT_PWM_TIM_IDX_FLAG) {		timer5_start = 1;
	} else {
		timer05_start = 1;
	}
}