Custom Embedded Solutions
WIN Enterprises, Inc MB-80510 User Manual
45
val = 0x01;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP80 to low)\n");
}
else if(strcmp(argv[1], "-81h") == 0){
val = 0x02;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
data_rw8 |= val;
outportb(data_port, data_rw8);
printf("(Set GP81 to high)\n");
}
else if(strcmp(argv[1], "-81l") == 0){
val = 0x02;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP81 to low)\n");
}
else if(strcmp(argv[1], "-82h") == 0){
val = 0x04;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
data_rw8 |= val;
outportb(data_port, data_rw8);
printf("(Set GP82 to high)\n");
}
else if(strcmp(argv[1], "-82l") == 0){
val = 0x04;
outportb(index_port, 0x89);
data_rw8 = inportb(data_port)&(~val);
outportb(data_port, data_rw8);
printf("(Set GP82 to low)\n");
}
else if(strcmp(argv[1], "-83h") == 0){