nur als root ausführbar.
setzt alle pins für 4 sekunden auf high.
Code:#include <stdio.h> #include <unistd.h> #include <sys/ioctl.h> #include <asm/io.h> int main (int argc, char** argv) { if (ioperm(0x378,1,1)) { printf("kann port nicht oeffnen"); return -1; } outb(255,0x378); sleep(4); outb(0,0x378); return 0; }
Lesezeichen