From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4E5B76E2.1090803@domain.hid> Date: Mon, 29 Aug 2011 13:24:18 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] how to use rt_io_get_region function on AT91SAM9263 in user space List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: yi zheng Cc: xenomai@xenomai.org On 08/29/2011 09:43 AM, yi zheng wrote: > Hi,all > I want to write a Xenomai application running in user space that can > access the > GPIO pins of my AT91SAM9263 ARM. To get the memory > region I found the function rt_misc_get_io_region(). Unfortunately > there is no discription of this function in the API documentation. > Does this function work like request_mem_region()? Yes, it allows user-space access to request_mem_region. So, in addition to this, you should do the usual mmap(/dev/mem) dance. However, it is probably better to write an RTDM driver using linux gpiolib. This way, you get mutual exclusion between linux and xenomai. -- Gilles.