From 357888a5e5dbb574db44bb29b3a07499c0d531c1 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 21 Apr 2013 00:28:25 +0700 Subject: rename nxp_sof_received to nxp_int_sof implementing freeRTOS integration change get_period_frame_list from using lst_idx to hostid (fix bug) adding polling interval supported for interrupt: 1ms, 2ms, 4ms, 8ms - add interval_ms to get_period_head function - add bInterval to qhd_init - add support for sub-frame (less than 8 micro frames) interval - add bunch of test for interrupt different intervals --- tinyusb/common/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tinyusb/common') diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index 3bc45f46b..e92f07ca6 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -121,6 +121,12 @@ static inline uint8_t min8_of(uint8_t x, uint8_t y) return (x < y) ? x : y; } +static inline uint16_t min16_of(uint16_t x, uint16_t y) ATTR_ALWAYS_INLINE ATTR_CONST; +static inline uint16_t min16_of(uint16_t x, uint16_t y) +{ + return (x < y) ? x : y; +} + static inline uint32_t min32_of(uint32_t x, uint32_t y) ATTR_ALWAYS_INLINE ATTR_CONST; static inline uint32_t min32_of(uint32_t x, uint32_t y) { -- cgit v1.3.1