From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19291 invoked by alias); 27 May 2005 16:50:15 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 19276 invoked by uid 22791); 27 May 2005 16:50:11 -0000 Received: from sta-206-168-96-204.rockynet.com (HELO hermes.chez-thomas.org) (206.168.96.204) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 27 May 2005 16:50:11 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 5E5EB100137; Fri, 27 May 2005 10:50:09 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 4CE5410007D; Fri, 27 May 2005 10:50:08 -0600 (MDT) From: Gary Thomas To: Raghu Bulusu Cc: eCos Discussion In-Reply-To: <798224455D1F52429C9A29E5374CDED886A6C5@k-byteexchange.kbyte.net> References: <798224455D1F52429C9A29E5374CDED886A6C5@k-byteexchange.kbyte.net> Content-Type: text/plain Date: Mon, 30 May 2005 15:08:00 -0000 Message-Id: <1117212607.19176.183.camel@hermes> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] CQ7750 X-SW-Source: 2005-05/txt/msg00356.txt.bz2 On Fri, 2005-05-27 at 12:43 -0400, Raghu Bulusu wrote: > Hi, > > I tried modifying the Hal of SH/CQ7750 for a new board with SH7750 > processor. I am building the Redboot image using Ecos Configtool 2.0. > I am trying to get the LED's on the board turn on and off to make sure that > the processor is reading from the flash. I know the LED's are turned on at > this part of file hal_stub.c in the initHardware function > > #ifdef HAL_STUB_PLATFORM_INIT ----- ?? > // If the platform defines any initialization code, call it here. > HAL_STUB_PLATFORM_INIT(); ----- this calls the led on function > #endif > > where is HAL_STUB_PLATFORM_INIT defined??? in the packages/Hal/* > Did you try looking in the sources? A quick 'grep' shows where this is defined (for each platform): % find hal/sh -type f | xargs fgrep "HAL_STUB_PLATFORM_INIT(" hal/sh/cq7708/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() hal_diag_led_on() hal/sh/cq7708/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/cq7750/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() hal_diag_led_on() hal/sh/cq7750/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/dreamcast/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() hal_diag_led_on() hal/sh/dreamcast/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/edk7708/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() hal_diag_led_on() hal/sh/edk7708/current/include/plf_stub.h:# define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/hs7729pci/current/include/plf_stub.h:#define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/se7751/current/include/plf_stub.h:#define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/se77x9/current/include/plf_stub.h:#define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT hal/sh/sh4_202_md/current/include/plf_stub.h:#define HAL_STUB_PLATFORM_INIT() CYG_EMPTY_STATEMENT -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss