From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22184 invoked by alias); 7 Jun 2005 19:01:50 -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 22169 invoked by uid 22791); 7 Jun 2005 19:01:46 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 07 Jun 2005 19:01:46 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DfjKN-0004tX-00; Tue, 07 Jun 2005 21:01:31 +0200 Date: Tue, 07 Jun 2005 19:01:00 -0000 To: "Neundorf, Alexander" Cc: ecos-discuss@sources.redhat.com Message-ID: <20050607190131.GH31731@lunn.ch> Mail-Followup-To: "Neundorf, Alexander" , ecos-discuss@sources.redhat.com References: <5A8A17126B73AC4C83968F6C4505E3C502295A4F@JO-EX01.JENOPTIK.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A8A17126B73AC4C83968F6C4505E3C502295A4F@JO-EX01.JENOPTIK.NET> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] cyg_clock_to_counter() and cyg_counter_delete() X-SW-Source: 2005-06/txt/msg00056.txt.bz2 On Mon, May 30, 2005 at 01:27:35PM +0200, Neundorf, Alexander wrote: > Hi, > > according to the docs I have to call cyg_counter_delete() to destroy > a counter created with cyg_counter_create(). If I understand it > correctly, I don't have to call cyg_counter_delete() for a counter > handle which I obtained via > cyg_clock_to_counter(cyg_realtime_clock(), &handle); Correct. It just gives you a handle to the existing counter associated to the clock. Deleting it would be a bad idea, it would probably stop the main clock. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss