#ifndef _LED_PWM_HAL_H_
	#define _LED_PWM_HAL_H_
	
	#include "stm32f1xx_hal.h"
	#define defaultprescalar 63 //63+1
	#define defaultperiodo 255 //255+1
	#define defaultpulse 127 // dutycicle medio
	extern TIM_HandleTypeDef htim2;
	extern TIM_OC_InitTypeDef sConfigOC;
	
	//extern void Error_Handler(void);
	
	void TIM2_Init(void);
	void Pwm_Led(uint16_t duty,uint8_t ch);
	void Pwm_Led_Porcent(float porcent,uint8_t ch);
	void Pwm_LedRGB(uint16_t Red,uint16_t Green,uint16_t Blue);
	void Pwm_LedRGB_Porcent(float porcent_R,float porcent_G,float porcent_B);
	void Pwm_LedUV(uint16_t uv);
	void Pwm_LedUV_Porcent(float porcent_UV);
	
	
	
	
#endif


