public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] cyg_clock_to_counter() and cyg_counter_delete()
@ 2005-05-31  9:14 Neundorf, Alexander
  2005-06-07 19:01 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Neundorf, Alexander @ 2005-05-31  9:14 UTC (permalink / raw)
  To: ecos-discuss

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);
The docs don't state this explicitely, so I just want to make sure.

Thanks
Alex

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] cyg_clock_to_counter() and cyg_counter_delete()
  2005-05-31  9:14 [ECOS] cyg_clock_to_counter() and cyg_counter_delete() Neundorf, Alexander
@ 2005-06-07 19:01 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-06-07 19:01 UTC (permalink / raw)
  To: Neundorf, Alexander; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-07 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-31  9:14 [ECOS] cyg_clock_to_counter() and cyg_counter_delete() Neundorf, Alexander
2005-06-07 19:01 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).