« Previous | Next » 

Revision 58892d47

ID58892d4782bf516e8356e3adfe4fc9b10c397b2f

Added by Beniamino Galvani over 10 years ago

util/fifo8: clear fifo head upon reset

To improve the predictability of fifo8_pop_buf(), the fifo head is set
to the start of data buffer upon a reset so that the first call to the
function will be able to retrieve all data in the fifo.

Signed-off-by: Beniamino Galvani <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Peter Maydell <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences