X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/c4510182f3c02e390184bee518940e325f064b20..7804c2dae30700296c3205aaf7f546f491999bf4:/lunaix-os/includes/lunaix/ds/fifo.h diff --git a/lunaix-os/includes/lunaix/ds/fifo.h b/lunaix-os/includes/lunaix/ds/fifo.h index a7ac90b..ecdbe5e 100644 --- a/lunaix-os/includes/lunaix/ds/fifo.h +++ b/lunaix-os/includes/lunaix/ds/fifo.h @@ -21,10 +21,10 @@ int fifo_backone(struct fifo_buf* fbuf); size_t -fifo_putone(struct fifo_buf* fbuf, uint8_t data); +fifo_putone(struct fifo_buf* fbuf, u8_t data); size_t -fifo_readone_async(struct fifo_buf* fbuf, uint8_t* data); +fifo_readone_async(struct fifo_buf* fbuf, u8_t* data); void fifo_set_rdptr(struct fifo_buf* fbuf, size_t rdptr); @@ -41,4 +41,7 @@ fifo_write(struct fifo_buf* fbuf, void* data, size_t count); size_t fifo_read(struct fifo_buf* fbuf, void* buf, size_t count); +void +fifo_clear(struct fifo_buf* fbuf); + #endif /* __LUNAIX_FIFO_BUF_H */