
System Installation
RUBY-D716VG2AR User’s Manual
3-16
{
tmp
=
EC_GetRamByte(EC_PIN4_CTL_ADDR);
tmp
=
0x84;
tmp
&=
~0x40;
EC_SetRamByte(EC_PIN4_CTL_ADDR,
tmp);
}
else
{
tmp
=
EC_GetRamByte(EC_PIN4_CTL_ADDR);
tmp
=
0x40;
tmp
&=
~0x80;
EC_SetRamByte(EC_PIN4_CTL_ADDR,
tmp);
}
break;
case
5:
if
(io_direction)
{
tmp
=
EC_GetRamByte(EC_PIN5_CTL_ADDR);
tmp
=
0x84;
tmp
&=
~0x40;
EC_SetRamByte(EC_PIN5_CTL_ADDR,
tmp);
}
else
{
tmp
=
EC_GetRamByte(EC_PIN5_CTL_ADDR);
tmp
=
0x40;
tmp
&=
~0x80;
EC_SetRamByte(EC_PIN5_CTL_ADDR,
tmp);
}
break;
case
6:
if
(io_direction)
{
tmp
=
EC_GetRamByte(EC_PIN6_CTL_ADDR);
tmp
=
0x84;
tmp
&=
~0x40;