IO ports in Linux

From Organic Design wiki
Revision as of 04:23, 16 March 2007 by Rob (talk | contribs) (may not need mircrocontroller for media center)
(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:

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

See also