p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Linux (http://p2p.wrox.com/forumdisplay.php?f=54)
-   -   Access to phisical addreses from user space (http://p2p.wrox.com/showthread.php?t=44069)

somevlad June 15th, 2006 08:03 PM

Access to phisical addreses from user space
 
Need acces from user space by phisical addres to gpio ports.

int fd = open("/dev/mem", O_RDWR|O_SYNC);
void *mm = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, phys_addr);

It dosn't work[?] Do you have an idea why or may be another idea?



All times are GMT -4. The time now is 05:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.