
Custom Embedded Systems
WIN Enterprises. Inc. MB-73350 User Manual
36
printf("GPO6 -> Low\n");
Output_mode();
data_rw8 = inportb(GPIO_port)&0xBF;
outportb(GPIO_port, data_rw8);
}
else if(strcmp(argv[1], "-h7") == 0){
printf("GPO7 -> High\n");
Output_mode();
data_rw8 = inportb(GPIO_port)&0x7F;
data_rw8 |= 0x80;
outportb(GPIO_port, data_rw8);
}
else if(strcmp(argv[1], "-l7") == 0){
printf("GPO7 -> Low\n");
Output_mode();
data_rw8 = inportb(GPIO_port)&0x7F;
outportb(GPIO_port, data_rw8);
}
else{
help();
return;
}
return;
}
void Enter_sio_config()
//Enter F81865 Configuration
{
outportb(index_port, 0x87);
delay(1);
//Delay some time
outportb(index_port, 0x87);
outportb(index_port, 0x07);
//Super IO Selct Bank Register Number
outportb(data_port , 0x03);
//Select logical device 7
outportb(index_port, 0x30);
outportb(data_port , 0x01);
}