Custom Embedded Solutions
WIN Enterprises, Inc MB-80510 User Manual
47
else if(strcmp(argv[1], "-85l") == 0){
val = 0x20;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP85 to low)\n");
}
else if(strcmp(argv[1], "-86h") == 0){
val = 0x40;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
data_rw8 |= val;
outportb(data_port, data_rw8);
printf("(Set GP86 to high)\n");
}
else if(strcmp(argv[1], "-86l") == 0){
val = 0x40;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP86 to low)\n");
}
else if(strcmp(argv[1], "-87h") == 0){
val = 0x80;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
data_rw8 |= val;
outportb(data_port, data_rw8);
printf("(Set GP87 to high)\n");
}
else if(strcmp(argv[1], "-87l") == 0){
val = 0x80;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP87 to low)\n");
}