fifo refine
This commit is contained in:
@@ -85,4 +85,14 @@ void os_sem_notify_one_in_isr(os_sem_t* self){
|
||||
os_waitobject_notify_one_in_isr(&self->wait_obj);
|
||||
}
|
||||
|
||||
OS_STATIC_FORCE_INLINE
|
||||
void os_sem_reset(os_sem_t* self){
|
||||
os_critical_enter();
|
||||
self->value = 0;
|
||||
os_waitobject_init(&self->wait_obj);
|
||||
os_critical_leave();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif /*INCLUDED_OS_SEM_H*/
|
||||
|
||||
Reference in New Issue
Block a user