diff --git a/kernel/base/ipc/los_event.c b/kernel/base/ipc/los_event.c index 9fe6142d94e55028c809dc3e3e5c2a53252f6c61..028e35c9041aea2d7a4ce44d8741708095178cad 100644 --- a/kernel/base/ipc/los_event.c +++ b/kernel/base/ipc/los_event.c @@ -296,7 +296,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_EventDestroy(PEVENT_CB_S eventCB) return LOS_OK; } -LITE_OS_SEC_TEXT_MINOR UINT32 LOS_EventClear(PEVENT_CB_S eventCB, UINT32 events) +LITE_OS_SEC_TEXT_MINOR UINT32 LOS_EventClear(PEVENT_CB_S eventCB, UINT32 eventMask) { UINT32 intSave; @@ -304,7 +304,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 LOS_EventClear(PEVENT_CB_S eventCB, UINT32 events) return LOS_ERRNO_EVENT_PTR_NULL; } SCHEDULER_LOCK(intSave); - eventCB->uwEventID &= events; + eventCB->uwEventID &= eventMask; SCHEDULER_UNLOCK(intSave); return LOS_OK; diff --git a/kernel/include/los_event.h b/kernel/include/los_event.h index f9a9a455e1bbeb8bbea07f9f292d66e609f23634..8a426eaa1a4e59eb83f0073b37ca14ddacf6aa2d 100644 --- a/kernel/include/los_event.h +++ b/kernel/include/los_event.h @@ -287,7 +287,7 @@ extern UINT32 LOS_EventWrite(PEVENT_CB_S eventCB, UINT32 events); /** * @ingroup los_event - * @brief Clear the event occurring in a specified task. + * @brief Clear the event of the eventCB by a specified eventMask. * * @par Description: *