From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24127 invoked by alias); 30 May 2007 19:11:50 -0000 Received: (qmail 24113 invoked from network); 30 May 2007 19:11:41 -0000 Received: from unknown (69.17.117.9) by sourceware.org with QMTP; 30 May 2007 19:11:41 -0000 Received: (qmail 9585 invoked from network); 30 May 2007 19:11:41 -0000 Received: from dsl027-162-100.atl1.dsl.speakeasy.net (HELO otter.localdomain) ([216.27.162.100]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 May 2007 19:11:40 -0000 Received: from localhost (jmills@localhost) by otter.localdomain (8.11.6/8.11.6) with ESMTP id l4UJBhk17909 for ; Wed, 30 May 2007 19:11:43 GMT Date: Wed, 30 May 2007 19:18:00 -0000 From: John Mills Reply-To: John Mills To: ecos-discuss@ecos.sourceware.org In-Reply-To: <20070530171551.GC32489@lunn.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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] General Q: Calling RedBoot CLI function from eCos app X-SW-Source: 2007-05/txt/msg00189.txt.bz2 Andrew - Thanks for the lead, but in my eCos app that macro just expands to NULL. The same code line works perfectly in RedBoot's 'main.c', however. I would also like to pass some of RedBoot's net-related config data to my app as well -- 'version' looked like a useful and relatively easy step in that direction. Other ideas welcome, naturally. - John Mills On Wed, 30 May 2007, Andrew Lunn wrote: > #include > char *version = CYGACC_CALL_IF_MONITOR_VERSION(); diag_printf(version); > probably works. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss