View Single Post

   
  #1 (permalink)  
Old 02-20-2008, 09:27 AM
Steven Woody
 
Posts: n/a
Default Need sample C code for access I/O ports


i got a mutipl-port serial board and need to write a simple C program to set
its base addresses in a Linux box. according to the user manual of the board,
the job can be accomplish be write/read some bytes to some specify IO ports.

i got no more experiences in accessing IO ports in Linux, so i think i'd better
find some simple code rather than coding from scratch.

any help will be highly appreciated.


--
steven woody (id: narke)

Ben Sanderson: Are you desirable? Are you irresistible? Maybe if you
drank bourbon with me, it would help. Maybe if you kissed me and I
could taste the sting in your mouth it would help. If you drank
bourbon with me naked. If you smelled of bourbon as you fucked me, it
would help. It would increase my esteem for you. If you poured bourbon
onto your naked body and said to me "drink this". If you spread your
legs and you had bourbon dripping from your breasts and your pussy and
said "drink here" then I could fall in love with you. Because then I
would have a purpose. To clean you up and that, that would prove that
I'm worth something. I'd lick you clean so that you could go away and
fuck someone else.

- Leaving Las Vegas (1995)
Reply With Quote