summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-21 00:28:25 +0700
committerhathach <[email protected]>2013-04-21 00:28:25 +0700
commit357888a5e5dbb574db44bb29b3a07499c0d531c1 (patch)
tree7b0c90354cbecd470aa7442229c61aefab9c09ff /tinyusb/common
parenta9010c17862b56fd337716253f2059fb2fcb72b7 (diff)
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
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/common.h6
1 files changed, 6 insertions, 0 deletions
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)
{