IO ports in Linux

From Organic Design wiki
Revision as of 21:20, 21 March 2007 by Rob (talk | contribs)

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()

See also