
unit LED
{
	public link unit D {}
	
	//[i] function_void OS_init;
	public void OS_init()
	{
		D.D0_DIR = 1;
		
		close();
	}
	
	//[i] function_void open;
	public void open()
	{
		D.D0_OUT = 0;
	}
	
	//[i] function_void close;
	public void close()
	{
		D.D0_OUT = 1;
	}
	//[i] function_void swap;
	public void swap()
	{
		D.D0_OUT = ~D.D0_OUT;
	}
}


