From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1289 invoked by alias); 14 Mar 2013 15:05:30 -0000 Received: (qmail 1273 invoked by uid 22791); 14 Mar 2013 15:05:29 -0000 X-SWARE-Spam-Status: No, hits=-3.1 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 p02c11o143.mxlogic.net (HELO p02c11o143.mxlogic.net) (208.65.144.76) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 15:04:58 +0000 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c11o143.mxlogic.net(mxl_mta-7.0.0-1) with ESMTP id 817e1415.0.69402.00-318.178672.p02c11o143.mxlogic.net (envelope-from ); Thu, 14 Mar 2013 09:04:58 -0600 (MDT) X-MXL-Hash: 5141e71a6834ffa4-64e58882da0b2f6b0a5355ab92ae7faada267520 Received: from [10.0.0.183] (63-253-251-83.ip.mcleodusa.net [63.253.251.83]) by smtpauth1.linear.com (Postfix) with ESMTPSA id 8AF07740C5; Thu, 14 Mar 2013 08:04:56 -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: <1363272049159-225400.post@n7.nabble.com> Date: Thu, 14 Mar 2013 15:05:00 -0000 Cc: ecos-discuss@ecos.sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <6830B196-28A1-4D40-9749-9A36371524F7@linear.com> 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> To: EnneGi X-AnalysisOut: [v=2.0 cv=O+6OSmBW 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=9I5xiGouAAAA:8 a=CCpqsmhAAAAA:8 a=1GcJ3LficQ9TpfG] X-AnalysisOut: [eTckA:9 a=CjuIK1q_8ugA:10 a=RY12dPZ27MgA:10 a=2fPOlPt4dusA] X-AnalysisOut: [:10 a=MSl-tDqOz04A:10] 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/msg00034.txt.bz2 EnneGi, I don't know at what step you have a problem, so let me describe how I made= changes, and if you already know this part, please forgive. I take a copy of the code from CVS and never change it. This is for referen= ce. Then I copy the package tree to my install area after tar'ing up my old= one. I make changes to files in the package tree. Now I can use diff or guiffy b= etween the clean tree and the working tree if I get in trouble and need to = know what I did. And I can use this for making patches. I then have a eCos project. That project creates two directories, one endin= g in _build and one ending in _install. I cd to _build and do a: make clean make I do this because the build from the eCos tool may not report errors. This = prevents accidental use of old files. Then I take my application project and do a clean to make sure the compiler= does not make any mistakes with old object files, and compile everything. = Then I debug. If the question is about the code itself, others may know the code you are = using as an example. I am only familiar with the Kinetis macros, and I am a= bit of a newbie, so I have no authority when it comes to proper coding sty= le and structure in eCos. Mike On Mar 14, 2013, at 8:40 AM, EnneGi wrote: > I try to do the porting but i failed. > Does anybody help me step by step? I really don't understand. Thanks.=20 >=20 >=20 >=20 > -- > View this message in context: http://sourceware-org.1504.n7.nabble.com/Ho= w-to-create-a-GPIO-driver-tp224910p225400.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