From owner-freebsd-arm@FreeBSD.ORG Mon Mar 9 17:46:49 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74B8546D for ; Mon, 9 Mar 2015 17:46:49 +0000 (UTC) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.freenet.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E53DD3D for ; Mon, 9 Mar 2015 17:46:49 +0000 (UTC) Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (port 25) (Exim 4.82 #2) id 1YV1lN-0000XV-CI for freebsd-arm@freebsd.org; Mon, 09 Mar 2015 18:46:45 +0100 Received: from localhost ([::1]:52692 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1YV1lN-0000d9-2Z for freebsd-arm@freebsd.org; Mon, 09 Mar 2015 18:46:45 +0100 Received: from mx13.freenet.de ([195.4.92.23]:58685) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1YV1iD-0007eP-7e for freebsd-arm@freebsd.org; Mon, 09 Mar 2015 18:43:29 +0100 Received: from p5ddd5082.dip0.t-ipconnect.de ([93.221.80.130]:50506 helo=[127.0.0.1]) by mx13.freenet.de with esmtpsa (ID freebsdnewbie@freenet.de) (TLSv1.2:DHE-RSA-AES128-SHA:128) (port 587) (Exim 4.82 #2) id 1YV1iD-000875-4g for freebsd-arm@freebsd.org; Mon, 09 Mar 2015 18:43:29 +0100 Message-ID: <54FDDBB6.8000101@freenet.de> Date: Mon, 09 Mar 2015 18:43:18 +0100 From: =?UTF-8?B?TWFudWVsIFN0w7xobg==?= User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: GPIO-INTR Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150309-0, 09.03.2015), Outbound message X-Antivirus-Status: Clean X-Originated-At: 93.221.80.130!50506 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 17:46:49 -0000 Hi, i'm trying to get gpio-events signalled into userspace-applications on a RPi-B. I found some pieces about gpio-interrupts in conjunction with kqueue in the web, but nothing that makes me able to get some notification from gpio. There is an example "gpio-intr-kqueue.c", which compiles smoothly, but gives me only something like: ./gpio-intr-kqueue 23 Awaiting interrupts on pin: 23 error: Operation not supported by device How do i configure a gpio-pin as an interrupt?