From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15290 invoked by alias); 14 Mar 2013 15:32:45 -0000 Received: (qmail 15280 invoked by uid 22791); 14 Mar 2013 15:32:43 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from p02c12o141.mxlogic.net (HELO p02c12o141.mxlogic.net) (208.65.145.74) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 15:32:13 +0000 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c12o141.mxlogic.net(mxl_mta-7.0.0-1) with ESMTP id c7de1415.0.3578.00-387.9403.p02c12o141.mxlogic.net (envelope-from ); Thu, 14 Mar 2013 09:32:12 -0600 (MDT) X-MXL-Hash: 5141ed7c5c786c0d-53e444bef505af7ce90f2410a5ee03f34a9770fc Received: from speaks2.engineering.linear.com (unknown [10.186.3.154]) by smtpauth1.linear.com (Postfix) with ESMTPSA id BF18C740C5; Thu, 14 Mar 2013 08:32:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) From: Michael Jones In-Reply-To: <1363274631389-225418.post@n7.nabble.com> Date: Thu, 14 Mar 2013 15:32:00 -0000 Cc: ecos-discuss@ecos.sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1362939557386-224910.post@n7.nabble.com> <513CDD92.6060003@siva.com.mk> <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> To: EnneGi X-AnalysisOut: [v=2.0 cv=Cp0IhAED c=1 sm=1 a=glloKNylpeYNumXQcclYyA==:17 a] X-AnalysisOut: [=Yh-lWC1K0O8A:10 a=D2_GN2MmYMYA:10 a=BLceEmwcHowA:10 a=kj9] X-AnalysisOut: [zAlcOel0A:10 a=MqDINYqSAAAA:8 a=VJqvIJsqrh0A:10 a=pGLkceIS] X-AnalysisOut: [AAAA:8 a=Y9k2NtSEAAAA:8 a=9I5xiGouAAAA:8 a=CCpqsmhAAAAA:8 ] X-AnalysisOut: [a=LqB5sqN1TCJBUiMKNd0A:9 a=CjuIK1q_8ugA:10 a=HdPdACE6zYwA:] X-AnalysisOut: [10 a=2fPOlPt4dusA:10 a=MSl-tDqOz04A:10 a=AGJWnHhDtUyvzKiP:] X-AnalysisOut: [21 a=xWzIBJ3F2g9wqz3y:21] X-MAIL-FROM: 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] Re: How to create a GPIO driver X-SW-Source: 2013-03/txt/msg00039.txt.bz2 EnneGi, I don't know this part, but you may want to look at the configuration of th= e port. Most GPIO have a configuration register. It is possible the GPIO po= rt is disabled or disconnected. You should be able to examine the configura= tion registers with your debugger. I find it much faster to just see what i= s in the registers than wade through code trying to reason my way to the re= gisters value. Mike On Mar 14, 2013, at 9:23 AM, EnneGi wrote: > thanks for reply. Now I describe my steps: >=20 > - found explicit address of gpio in the file lpc17xx.h at this url: > http://www.keil.com/dd/docs/arm/nxp/lpc17xx/lpc17xx.h > (search "Peripheral memory map") >=20 > - copy the address in the "var_io.h" of the stm32 in the "#define" of gpio > and copy the part of source that I modify in the "var_io.h" in "the > var_io.h" of lpc1766stk >=20 > - compile ecos with=20 > ecosconfig new lpc1766stk > ecosconfig tree > make >=20 > - try an application of gpio >=20 >=20 > >=20 > int main (void) > { > hal_LPC17XX_gpio_set(/*here I put the address*/); > hal_LPC17XX_gpio_out(/*here I put the address*/, 0); >=20 > } >=20 >=20 > I think that gpio (associated to led) send value 0 in the output. >=20 >=20 >=20 > -- > View this message in context: http://sourceware-org.1504.n7.nabble.com/Ho= w-to-create-a-GPIO-driver-tp224910p225418.html > Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.co= m. >=20 > --=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 >=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