
//------------------------------
//图形化连接端口

unit PORT
{
	public link bit D2_DIR = #.COM_MCU.DDRD.0; public link bit D2_IN = #.COM_MCU.PIND.0; public link bit D2_OUT = #.COM_MCU.PORTD.0;
	public link bit D3_DIR = #.COM_MCU.DDRD.1; public link bit D3_IN = #.COM_MCU.PIND.1; public link bit D3_OUT = #.COM_MCU.PORTD.1;
}

unit PD2
{
	public const int8 INT_INDEX = 0;
	public link bit D0_DIR = #.COM_MCU.DDRD.2; public link bit D0_IN = #.COM_MCU.PIND.2; public link bit D0_OUT = #.COM_MCU.PORTD.2; public link bit D0_PUL = #.COM_MCU.PORTD.2;
}
unit PD3
{
	public const int8 INT_INDEX = 1;
	public link bit D0_DIR = #.COM_MCU.DDRD.3; public link bit D0_IN = #.COM_MCU.PIND.3; public link bit D0_OUT = #.COM_MCU.PORTD.3; public link bit D0_PUL = #.COM_MCU.PORTD.3;
}
unit PD4
{
	public link bit D0_DIR = #.COM_MCU.DDRD.4; public link bit D0_IN = #.COM_MCU.PIND.4; public link bit D0_OUT = #.COM_MCU.PORTD.4; public link bit D0_PUL = #.COM_MCU.PORTD.4;
}
unit PD5
{
	public link bit D0_DIR = #.COM_MCU.DDRD.5; public link bit D0_IN = #.COM_MCU.PIND.5; public link bit D0_OUT = #.COM_MCU.PORTD.5; public link bit D0_PUL = #.COM_MCU.PORTD.5;
}

unit PB0
{
	public link bit D0_DIR = #.COM_MCU.DDRB.0; public link bit D0_IN = #.COM_MCU.PINB.0; public link bit D0_OUT = #.COM_MCU.PORTB.0; public link bit D0_PUL = #.COM_MCU.PORTB.0;
}
unit PB3
{
	public link bit D0_DIR = #.COM_MCU.DDRB.3; public link bit D0_IN = #.COM_MCU.PINB.3; public link bit D0_OUT = #.COM_MCU.PORTB.3; public link bit D0_PUL = #.COM_MCU.PORTB.3;
}


//AD口
unit PC0
{
	public const int8 AD_INDEX = 0;
	public link bit D0_DIR = #.COM_MCU.DDRC.0; public link bit D0_IN = #.COM_MCU.PINC.0; public link bit D0_OUT = #.COM_MCU.PORTC.0; public link bit D0_PUL = #.COM_MCU.PORTC.0;
}
unit PC1
{
	public const int8 AD_INDEX = 1;
	public link bit D0_DIR = #.COM_MCU.DDRC.1; public link bit D0_IN = #.COM_MCU.PINC.1; public link bit D0_OUT = #.COM_MCU.PORTC.1; public link bit D0_PUL = #.COM_MCU.PORTC.1;
}
unit PC2
{
	public link bit D0_DIR = #.COM_MCU.DDRC.2; public link bit D0_IN = #.COM_MCU.PINC.2; public link bit D0_OUT = #.COM_MCU.PORTC.2; public link bit D0_PUL = #.COM_MCU.PORTC.2;
}
unit PC3
{
	public link bit D0_DIR = #.COM_MCU.DDRC.3; public link bit D0_IN = #.COM_MCU.PINC.3; public link bit D0_OUT = #.COM_MCU.PORTC.3; public link bit D0_PUL = #.COM_MCU.PORTC.3;
}
unit PC4
{
	public const int8 AD_INDEX = 4;
	public link bit D0_DIR = #.COM_MCU.DDRC.4; public link bit D0_IN = #.COM_MCU.PINC.4; public link bit D0_OUT = #.COM_MCU.PORTC.4; public link bit D0_PUL = #.COM_MCU.PORTC.4;
}
unit PC5
{
	public const int8 AD_INDEX = 5;
	public link bit D0_DIR = #.COM_MCU.DDRC.5; public link bit D0_IN = #.COM_MCU.PINC.5; public link bit D0_OUT = #.COM_MCU.PORTC.5; public link bit D0_PUL = #.COM_MCU.PORTC.5;
}






