Ich habe ein "EXSYS EX-1341 Konverter-Modul USB – parallel", das wird von OpenSuSE 11 richtig erkannt als /dev/usblp0.
cat /proc/ioports | grep parport
0378-037a : parport0
0778-077a : parport0
Aber folgendes Program funktioniert nicht (keine Fehlermeldung):
#include <stdio.h>
#include <unistd.h>
#include <sys/io.h>
#include <sys/resource.h>
int main()
{
/* lp0
if (ioperm(0x378,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x378);
return 0;
*/
if (ioperm(0x778,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x778);
return 0;
}
Es passiert gar nichts (blinkt nicht mal), was klemmt ?
cat /proc/ioports | grep parport
0378-037a : parport0
0778-077a : parport0
Aber folgendes Program funktioniert nicht (keine Fehlermeldung):
#include <stdio.h>
#include <unistd.h>
#include <sys/io.h>
#include <sys/resource.h>
int main()
{
/* lp0
if (ioperm(0x378,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x378);
return 0;
*/
if (ioperm(0x778,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x778);
return 0;
}
Es passiert gar nichts (blinkt nicht mal), was klemmt ?