This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Documentation - Function cyg_interrupt_configure(...)
- From: "Smith, Keith" <Keith dot Smith at PERKINELMER dot COM>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 13 May 2014 14:17:37 +0000
- Subject: Documentation - Function cyg_interrupt_configure(...)
- Authentication-results: sourceware.org; auth=none
For cyg_interrupt_configure(...) the documentation and the comments for the *.h declaration of cyg_interrupt_configure simply says argument 'level' sets the trigger to be level or edge, and argument 'up' sets rising/falling edge or high/low level.
The types of 'level' and 'up' are cyg_bool_t, true or false.
The text implies that the first item of the 'or' clause represent true and the second item false.
Is this correct?
It would be a lot clearer if the text stated 'level' is of type cyg_bool_t, true or false. Setting 'level' to true enables level triggering of the interrupt. Setting 'level' to false enables edge triggering of the interrupt.
Ditto for 'up'.
Keith M Smith
PerkinElmer
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss