diff options
| author | hathach <[email protected]> | 2013-02-04 13:13:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-04 13:13:07 +0700 |
| commit | a5b29c5d333fc5fe3bcd01de145e130765ed1d48 (patch) | |
| tree | 02d62073dd521ce43e98ad46a5c177dd198e62c7 /tinyusb/common/fifo.c | |
| parent | 5ec56120e678672c9da1953ad1890ecfa7bdb773 (diff) | |
refractor include chain with following policies
- header file only include what it needs for its declarations.
Diffstat (limited to 'tinyusb/common/fifo.c')
| -rw-r--r-- | tinyusb/common/fifo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tinyusb/common/fifo.c b/tinyusb/common/fifo.c index ccb2c60fc..b968d9574 100644 --- a/tinyusb/common/fifo.c +++ b/tinyusb/common/fifo.c @@ -48,8 +48,8 @@ /**************************************************************************/ static inline void mutex_lock (fifo_t* f) { - if (f->irq > 0) - NVIC_DisableIRQ(f->irq); +// if (f->irq > 0) +// NVIC_DisableIRQ(f->irq); } /**************************************************************************/ @@ -62,8 +62,8 @@ static inline void mutex_lock (fifo_t* f) /**************************************************************************/ static inline void mutex_unlock (fifo_t* f) { - if (f->irq > 0) - NVIC_EnableIRQ(f->irq); +// if (f->irq > 0) +// NVIC_EnableIRQ(f->irq); } /**************************************************************************/ @@ -84,7 +84,7 @@ static inline void mutex_unlock (fifo_t* f) Set the -1 if not required. */ /**************************************************************************/ -bool fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQn_Type irq) +bool fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable) //, IRQn_Type irq) { ASSERT(size > 0, false); @@ -92,7 +92,7 @@ bool fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQ f->size = size; f->rd_ptr = f->wr_ptr = f->len = 0; f->overwritable = overwritable; - f->irq = irq; +// f->irq = irq; return true; } |
