#ifndef LED_H
#define LED_H

// <<< Use Configuration Wizard in Context Menu >>>
	// <e> LED Enable/Disable
		#define dLED_MODE 	1
			#if (dLED_MODE == 1)
				#define LED_OUT 	(P0_6)
			// <h> Error code LED flashing times set
				// <o> Over voltage protected(OVP)<0-10>
					#define dLED_Flashing_OVP	1
				// <o> Under voltage protected(UVP)<0-10>
					#define dLED_Flashing_UVP	2
				// <o> Over temperature protected(OTP)<0-10>
					#define dLED_Flashing_OTP	3
				// <o> rotal lock protected(Lock)<0-10>
					#define dLED_Flashing_LOCK	4
				// <o> Over current protected(OCP)<0-10>
					#define dLED_Flashing_OCP	5
				// <o> Over phase current protected(POCP)<0-10>
					#define dLED_Flashing_POCP	6
			// </h>
			
			// <h> Error code LED working time set
				// <o> LED working cycle time set(unit:ms)<0-30000>
					#define dLED_Flashing_cycle		100
				// <o> LED off delay time set(unit:ms)<0-30000>
					#define dLED_OFF_Delay_TIME		1000
			// </h>
			#endif
	// </e>
// <<< end of configuration section >>>
extern bit led_flashing_sw;
extern xdata uint8	led_flashing_times;
extern xdata uint16	led_flashing_count;
extern void LED_Flashing(void);
#endif