diff options
| author | hathach <[email protected]> | 2012-12-02 11:07:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-12-02 11:07:59 +0700 |
| commit | b36a85ad3625596ce57f1a9fc2ddde2ea98b33d8 (patch) | |
| tree | d73d19e9d96075369ffdb3f20a6878fdde0d51d6 /tinyusb/common/fifo.h | |
| parent | a636d75fc6c8af025a5f5a6229bd02334f82e976 (diff) | |
add extern "C" for cpp
start to work on hal layer
Diffstat (limited to 'tinyusb/common/fifo.h')
| -rw-r--r-- | tinyusb/common/fifo.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tinyusb/common/fifo.h b/tinyusb/common/fifo.h index b23c56f0d..6ce602456 100644 --- a/tinyusb/common/fifo.h +++ b/tinyusb/common/fifo.h @@ -51,6 +51,10 @@ #include "common/common.h" +#ifdef __cplusplus + extern "C" { +#endif + /** \struct fifo_t * \brief Simple Circular FIFO */ @@ -65,9 +69,6 @@ typedef struct _fifo_t IRQn_Type irq; ///< interrupt used to lock fifo } fifo_t; -#ifdef __cplusplus - extern "C" { -#endif void fifo_init(fifo_t* f, uint8_t* buffer, uint16_t size, bool overwritable, IRQn_Type irq); bool fifo_write(fifo_t* f, uint8_t data); |
