[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Parallelport-access



Hjælp! (standard c)

Jeg skal bruge et bit i parallelporten til at styre et eksternt relæ. Derfor starter jeg med:
ioperm(0x3bc, 1, 1 );
Kort tid derefter forsøger jeg at sætte databit-0 med:
outb( 0x3bc, 1);
Sidste linie får bare compileren til at melde:
testpar.c:15: warning: large integer implicitly truncated to unsigned type.


Programmet dør da også med en SIGSEGV (Segmentation fault) med det samme.
Jeg inkluderer sys/io.h, men der er vist andre muligheder iflg. man-siderne.


Hvad dælen er der galt ellers?

M.v.h.
Søren H. Sørensen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *