From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10210 invoked by alias); 29 May 2007 09:57:13 -0000 Received: (qmail 10202 invoked by uid 22791); 29 May 2007 09:57:13 -0000 X-Spam-Check-By: sourceware.org Received: from pro13.rediffmailpro.com (HELO pro13.rediffmailpro.com) (220.226.195.182) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 29 May 2007 09:57:11 +0000 Received: (qmail 30067 invoked from network); 29 May 2007 09:56:30 -0000 Received: from unknown (HELO rjsivakumar.chndyansys) (59.92.88.229) by mailserver with SMTP; 29 May 2007 09:56:30 -0000 From: "R.J.Sivakumar" To: ecos-discuss@ecos.sourceware.org Date: Tue, 29 May 2007 12:02:00 -0000 User-Agent: KMail/1.8.2 References: <1180414215.10739.ezmlm@ecos.sourceware.org> <200705291039.17853.rj.sivakumar@dyansys.com> <1180422029.5571.25.camel@sg-ubuntu> In-Reply-To: <1180422029.5571.25.camel@sg-ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200705291528.58749.rj.sivakumar@dyansys.com> 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] Reg- One wire driver in Redboot X-SW-Source: 2007-05/txt/msg00157.txt.bz2 Dear Sergei Really thanks for your immediate response, As this is the first attempt in ECOS, can you please give the details of h= ow=20 and where to program and cross compile the bootloader for the ARM11 board,= =20 regarding the driver ,where i have to add the register address of the one=20 wire protocol of ARM11 processor, we are waiting for your suggestions Thanks once again --=20 Best regards, Sivakumar.R.J On Tuesday 29 May 2007 12:30 pm, you wrote: > 29/05/2007 =D0=B2 10:39 +0530, R.J.Sivakumar wrote: > > Dear all. > > As we are working in ARM11 board which has ECOS and redboot as the > > bootloader in the BSP, we have to monitor the battery through one wire > > device protocol in the redboot.Can u please help me, how to program the > > ECOS for the one wire protocol to access the battery EEPROM.Also as iam= a > > newbie for ECOS and redboot,please show me some link or documentation > > where i can start to achieve this. > > If you desire to contribute the common one-wire device for eCos, I would > refer you to > > http://ecos.sourceware.org/docs-latest/ref/ecos-ref.html > http://ecos.sourceware.org/docs-latest/ref/io.html > > If you already did implement the same primitives, for example, as > described here http://www.maxim-ic.com/appnotes.cfm/appnote_number/126 , > you can easy add new polled device (your 1-wire device) for RedBoot > using the RedBoor_idle() register, for example > > RedBoot_idle (read_ow_device, RedBoot_IDLE_AFTER_NETIO); > > void > read_ow_device (bool is_idle) > { > if (!is_idle) > return; > > // call your procedure > ... > } > > I did play with that maxim source 'as is', just defined those A-J values > for my target. It did work fine (one my eCos thread measured a > temperature arround the board). > > And the last note: please, don't use interrupt driven 1-wire read in > RedBoot. > > > -- Sergei > > > Thanks in Advance > > > > -- > > Best regards, > > Sivakumar.R.J -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss