System Installation
ROBO-8112VG2AR User’s Manual
3-9
void Set_LDN(unsigned char LDN) {
outportb(SIO_Port,
0x07);
outportb(S1,
LDN);
printf("LDN=%x\n",
LDN);
}
void Set_Register(unsigned char offset, unsigned char value) {
outportb(SIO_Port,
offset);
outportb(S1,
value);
printf("Write offset:%x = %x\n", offset, value);
}
int main(void) {
printf("test
string\n");
Enter_IT872x_SIO();
Set_LDN(GPIO_LDN);
Set_Register(0x72,
0xC0);
Set_Register(0x73,
0x05);
printf("System will reset in 5 seconds\n");
return
0;
}