Skip to content

Instantly share code, notes, and snippets.

@kylegordon
Created October 26, 2012 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylegordon/3960418 to your computer and use it in GitHub Desktop.
Save kylegordon/3960418 to your computer and use it in GitHub Desktop.
wait_change()
void wait_change() {
int on;
unsigned char v;
do {
v = inb(status);
on = !!(v & 0x20);
usleep(1000);
} while (on == laston);
laston = on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment