added some tests for fifo.c

This commit is contained in:
hathach
2013-01-16 13:25:02 +07:00
parent c004cd4387
commit 8155fd38a5
3 changed files with 51 additions and 6 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ typedef struct _fifo_t
volatile uint16_t wr_ptr ; ///< write pointer
volatile uint16_t rd_ptr ; ///< read pointer
bool overwritable ; ///< allow overwrite data when full
IRQn_Type irq ; ///< interrupt used to lock fifo
IRQn_Type irq ; ///< TODO (abstract later) interrupt used to lock fifo
} fifo_t;
bool fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQn_Type irq);