abstract usb enable/disable interrupt to hal layer

This commit is contained in:
hathach
2012-12-10 14:58:25 +07:00
parent b52b3b1cef
commit 3eb7465e5e
12 changed files with 218 additions and 29 deletions

View File

@@ -74,7 +74,7 @@ void fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQ
bool fifo_write(fifo_t* f, uint8_t data);
bool fifo_read(fifo_t* f, uint8_t *data);
uint16_t fifo_readArray(fifo_t* f, uint8_t * rx, uint16_t maxlen);
void fifo_clear(fifo_t*);
void fifo_clear(fifo_t *f);
static inline bool fifo_isEmpty(fifo_t* f)
{