View Single Post
  #1 (permalink)  
Old June 15th, 2006, 08:03 PM
somevlad somevlad is offline
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Reply With Quote