FWA8206 Series User’s Manual
34
}
outb(0xaa,0x4e); // Exit extended function mode
}
#define ON 1
#define OFF 0
int main( int argc , char **argv )
{
setuid(0); /* if we're setuid, force it on */
if ( iopl(3) ) {
fprintf(stderr, "iopl(): %s\n", strerror(errno));
return -1;
}
for
(;;)
{
gpo_onoff(1,ON);
usleep(200000);
gpo_onoff(1,OFF);
usleep(200000);
gpo_onoff(2,ON);
usleep(200000);
gpo_onoff(2,OFF);
usleep(200000);
gpo_onoff(3,ON);
usleep(200000);
gpo_onoff(3,OFF);
usleep(200000);
gpo_onoff(4,ON);
usleep(200000);
gpo_onoff(4,OFF);
usleep(200000);
gpo_onoff(5,ON);
usleep(200000);
gpo_onoff(5,OFF);
usleep(200000);
}
return
0;
}