diff options
| author | hathach <[email protected]> | 2013-02-27 20:13:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-27 20:13:49 +0700 |
| commit | 594fc6771c4106b84c4bbaa03a8f3b81c5d82b0a (patch) | |
| tree | a0ff44b2899a9046a261212b1c532cfc92f423c4 /tinyusb/osal/osal_none.c | |
| parent | 0c397c6b8d96f9d82101afb3a3bc812981bac194 (diff) | |
make osal_tick_get, osal_tick_tock static inline
Diffstat (limited to 'tinyusb/osal/osal_none.c')
| -rw-r--r-- | tinyusb/osal/osal_none.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tinyusb/osal/osal_none.c b/tinyusb/osal/osal_none.c index b30f7ecda..4c8eb7aca 100644 --- a/tinyusb/osal/osal_none.c +++ b/tinyusb/osal/osal_none.c @@ -49,19 +49,11 @@ //--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION //--------------------------------------------------------------------+ -static volatile uint32_t osal_tick_current = 0; +volatile uint32_t osal_tick_current = 0; //--------------------------------------------------------------------+ // IMPLEMENTATION //--------------------------------------------------------------------+ -uint32_t osal_tick_get(void) -{ - return osal_tick_current; -} -void osal_tick_tock(void) -{ - osal_tick_current++; -} #endif |
