2008-04-20 23:32:01     Can the GPIO registers be mapped to user space by MMap?

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-20 23:32:01     Can the GPIO registers be mapped to user space by MMap?

new kernel (CHINA)

Message: 54582    I want to operate GPIO without write()/read(),so I try to use mmap(). I know it can be implemented in normal linux. Does uClinux support it?

QuoteReplyEditDelete

 

 

2008-04-20 23:41:55     Re: Can the GPIO registers be mapped to user space by MMap?

Mike Frysinger (UNITED STATES)

Message: 54584    the hardware does not support remapping of any system mmrs ... even if it did, remapping the registers is a bad idea considering you could easily mess up the gpio state and the kernel would have no idea

 

just use the simple gpio driver

QuoteReplyEditDelete

 

 

2008-04-21 01:26:14     Re: Can the GPIO registers be mapped to user space by MMap?

new kernel (CHINA)

Message: 54586    Thanks, Mike.

Attachments

    Outcomes