This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cyg_clock_to_counter() and cyg_counter_delete()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]