加入状态机

This commit is contained in:
2026-06-05 23:18:54 +08:00
parent 2b6c701a6a
commit efffc5ec9c
6 changed files with 297 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@ void fifo_clear(fifo_t* self){
self->read_idx = self->write_idx = 0;
}
OS_STATIC_FORCE_INLINE
os_bool_t fifo_is_empty(fifo_t* self){
return (self->write_idx==self->read_idx);