From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10253 invoked by alias); 14 Mar 2013 15:24:29 -0000 Received: (qmail 10239 invoked by uid 22791); 14 Mar 2013 15:24:23 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Mar 2013 15:23:51 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UGA0V-0005M7-Co for ecos-discuss@ecos.sourceware.org; Thu, 14 Mar 2013 08:23:51 -0700 Date: Thu, 14 Mar 2013 15:24:00 -0000 From: EnneGi To: ecos-discuss@ecos.sourceware.org Message-ID: <1363274631389-225418.post@n7.nabble.com> In-Reply-To: <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> <6830B196-28A1-4D40-9749-9A36371524F7@linear.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: [ECOS] Re: How to create a GPIO driver X-SW-Source: 2013-03/txt/msg00037.txt.bz2 thanks for reply. Now I describe my steps: - 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") - 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 - compile ecos with ecosconfig new lpc1766stk ecosconfig tree make - try an application of gpio int main (void) { hal_LPC17XX_gpio_set(/*here I put the address*/); hal_LPC17XX_gpio_out(/*here I put the address*/, 0); } I think that gpio (associated to led) send value 0 in the output. -- View this message in context: http://sourceware-org.1504.n7.nabble.com/How-to-create-a-GPIO-driver-tp224910p225418.html Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss