
unit motor
{
	public const uint16 ID = 0;
	
	public link unit IN1 {}
	public link unit IN2 {}
	public link unit IN3 {}
	public link unit IN4 {}
	
	//[i] function_void OS_init;
	public void OS_init()
	{
		IN1.D0_DIR = 1;
		IN1.D0_OUT = 0;
		IN2.D0_DIR = 1;
		IN2.D0_OUT = 0;
		IN3.D0_DIR = 1;
		IN3.D0_OUT = 0;
		IN4.D0_DIR = 1;
		IN4.D0_OUT = 0;
	}
}
unit PORT
{
	public link bit D0;
	public link bit D1;
	public link bit D2;
	public link bit D3;
}
PORT.D0 = driver.IN1.D0_OUT;
PORT.D1 = driver.IN2.D0_OUT;
PORT.D2 = driver.IN3.D0_OUT;
PORT.D3 = driver.IN4.D0_OUT;



