diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-16 08:31:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-16 08:31:38 +0000 |
commit | 5b39691e9eaa4f03b14794b824487f324aea7ca2 (patch) | |
tree | 7b30d6723d5f754caaf2396ee40ed669785f1f7f /os/kernel/include | |
parent | 98c5ccf6b8ce4800442ddc0986690fe0121b701a (diff) | |
download | ChibiOS-5b39691e9eaa4f03b14794b824487f324aea7ca2.tar.gz ChibiOS-5b39691e9eaa4f03b14794b824487f324aea7ca2.tar.bz2 ChibiOS-5b39691e9eaa4f03b14794b824487f324aea7ca2.zip |
Kernel events improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4667 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include')
-rw-r--r-- | os/kernel/include/chevents.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/os/kernel/include/chevents.h b/os/kernel/include/chevents.h index d4ac87ef3..7550ca2b7 100644 --- a/os/kernel/include/chevents.h +++ b/os/kernel/include/chevents.h @@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/*
+ Concepts and parts of this file have been contributed by Scott (skute).
+ */
/**
* @file chevents.h
@@ -45,6 +48,8 @@ struct EventListener { eventmask_t el_mask; /**< @brief Event flags mask associated
by the thread to the Event
Source. */
+ flagsmask_t el_flags; /**< @brief Flags added to the listener
+ bu the event source.*/
};
/**
@@ -166,8 +171,8 @@ extern "C" { void chEvtUnregister(EventSource *esp, EventListener *elp);
eventmask_t chEvtClearFlags(eventmask_t mask);
eventmask_t chEvtAddFlags(eventmask_t mask);
- void chEvtSignalFlags(Thread *tp, eventmask_t mask);
- void chEvtSignalFlagsI(Thread *tp, eventmask_t mask);
+ void chEvtSignal(Thread *tp, eventmask_t mask);
+ void chEvtSignalI(Thread *tp, eventmask_t mask);
void chEvtBroadcastFlags(EventSource *esp, eventmask_t mask);
void chEvtBroadcastFlagsI(EventSource *esp, eventmask_t mask);
void chEvtDispatch(const evhandler_t *handlers, eventmask_t mask);
|