From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12676 invoked by alias); 14 Mar 2013 16:09:09 -0000 Received: (qmail 12662 invoked by uid 22791); 14 Mar 2013 16:09:06 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mail1.bemta7.messagelabs.com (HELO mail1.bemta7.messagelabs.com) (216.82.254.111) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 16:08:36 +0000 Received: from [216.82.254.67:53011] by server-15.bemta-7.messagelabs.com id 84/CC-24613-306F1415; Thu, 14 Mar 2013 16:08:35 +0000 X-Env-Sender: Richard.Morris@lifetech.com X-Msg-Ref: server-14.tower-196.messagelabs.com!1363277049!3287307!23 X-StarScan-Received: X-StarScan-Version: 6.8.6.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7252 invoked from network); 14 Mar 2013 16:05:36 -0000 Received: from unknown (HELO cbd01exc7ets01.ads.invitrogen.net) (198.160.190.35) by server-14.tower-196.messagelabs.com with RC4-SHA encrypted SMTP; 14 Mar 2013 16:05:36 -0000 Received: from CBD01EXC7HTCA01.ads.invitrogen.net (10.33.67.50) by cbd01exc7ets01.ads.invitrogen.net (172.16.16.35) with Microsoft SMTP Server (TLS) id 8.3.192.1; Thu, 14 Mar 2013 08:10:20 -0700 Received: from CBD01MAIL02.ads.invitrogen.net ([10.33.67.57]) by CBD01EXC7HTCA01.ads.invitrogen.net ([10.33.67.50]) with mapi; Thu, 14 Mar 2013 09:05:02 -0700 From: "Morris, Richard" To: EnneGi CC: "ecos-discuss@ecos.sourceware.org" Date: Thu, 14 Mar 2013 16:09:00 -0000 Message-ID: <3F040114-5CCD-4DF6-9343-EA5DC6CB99F5@lifetech.com> References: <1362956256201-224925.post@n7.nabble.com> <1363020733839-225026.post@n7.nabble.com> <1363126636423-225218.post@n7.nabble.com> <1363272049159-225400.post@n7.nabble.com> <6830B196-28A1-4D40-9749-9A36371524F7@linear.com> <1363274631389-225418.post@n7.nabble.com> <1363275339898-225422.post@n7.nabble.com> In-Reply-To: <1363275339898-225422.post@n7.nabble.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to create a GPIO driver X-SW-Source: 2013-03/txt/msg00044.txt.bz2 A useful document is the LPC17xx User manual: http://www.nxp.com/documents/user_manual/UM10360.pdf See chapter 9: LPC17xx General Purpose Input/Output (GPIO). It is also a good idea to read: Chapter 1: Introductory Information Chapter 2: Memory Map Here is an example of how I use the STM32 related functions to do GPIO: #include cyg_uint32 v_led_ok =3D CYGHWR_HAL_STM32_PIN_OUT(B, 14, OPENDRAIN, NON= E, 2MHZ); // Turn the LED on CYGHWR_HAL_STM32_GPIO_OUT(v_led_ok, 1); // Turn the LED off CYGHWR_HAL_STM32_GPIO_OUT(v_led_ok, 0); See ./packages/hal/cortexm/stm32/var/current/include/var_io_pins.h for deta= ils. Using the user manual above and the ideas used by the STM32, you can create= comparable functionality for the LPC1xxx family. ------------------------------ On Mar 14, 2013, at 8:35 AM, EnneGi wrote: Ok, so how I locate GPIO register in this way? -- View this message in context: http://sourceware-org.1504.n7.nabble.com/How-= to-create-a-GPIO-driver-tp224910p225422.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss