This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_clock_to_counter() and cyg_counter_delete()
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "Neundorf, Alexander" <Alexander dot Neundorf at jenoptik dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 7 Jun 2005 21:01:31 +0200
- Subject: Re: [ECOS] cyg_clock_to_counter() and cyg_counter_delete()
- References: <5A8A17126B73AC4C83968F6C4505E3C502295A4F@JO-EX01.JENOPTIK.NET>
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