git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@57 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2007-10-19 08:25:15 +00:00
parent 0b2068db8c
commit de194f4d96
2 changed files with 4 additions and 10 deletions

View File

@ -38,6 +38,9 @@ AVR-AT90CANx-GCC - Port on AVR AT90CAN128, not complete yet.
*** Releases ***
*****************************************************************************
*** 0.3.5 ***
- Space optimization in events code.
*** 0.3.4 ***
- Fixed a problem in chVTSetI().
- New API, chVTIsArmedI(), it is a macro in delta.h.

View File

@ -91,19 +91,10 @@ void chEvtClear(t_eventmask mask) {
* @param esp pointer to the \p EventSource structure
*/
void chEvtSend(EventSource *esp) {
EventListener *elp;
chSysLock();
elp = esp->es_next;
while (elp != (EventListener *)esp) {
Thread *tp = elp->el_listener;
tp->p_epending |= EventMask(elp->el_id);
if ((tp->p_state == PRWTEVENT) && (tp->p_epending & tp->p_ewmask))
chSchReadyI(tp);
elp = elp->el_next;
}
chEvtSendI(esp);
chSchRescheduleS();
chSysUnlock();