fifo refine

This commit is contained in:
2026-06-04 09:57:39 +08:00
parent 1bc0c7afac
commit 2b6c701a6a
3 changed files with 46 additions and 6 deletions
+10
View File
@@ -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*/