IO ports in Linux

From Organic Design wiki
Revision as of 01:22, 23 March 2007 by Rob (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

From linux you need to be setuid() to get to the pins of an IO port. This is not problem because we run as root anyway. The function prototypes to look at are:

  • include <asm/io.h>
  • ioperm()
  • inw()
  • outw()

+Portio.c

See also