summaryrefslogtreecommitdiff
path: root/tinyusb/core
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-06-03 15:56:14 +0700
committerhathach <[email protected]>2013-06-03 15:56:14 +0700
commit9f9adca03b97874754075b9c1a4612c2be1e5f07 (patch)
tree2397037b16feb292b371a848dfe947f370624252 /tinyusb/core
parent52f18f37848615b9ebe8d749c16eea114b24f524 (diff)
add TUSB_CFG_PROUDCT_ID check
move USB_MAX_EP_NUM to device dependency - lpc43 --> 6 - lpc11/13 --> 5
Diffstat (limited to 'tinyusb/core')
-rw-r--r--tinyusb/core/std_descriptors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/core/std_descriptors.h b/tinyusb/core/std_descriptors.h
index 854bbe06f..249d31491 100644
--- a/tinyusb/core/std_descriptors.h
+++ b/tinyusb/core/std_descriptors.h
@@ -53,6 +53,8 @@
extern "C" {
#endif
+#define ENDPOINT_OUT_LOGICAL_TO_PHYSICAL(addr) (addr)
+#define ENDPOINT_IN_LOGICAL_TO_PHYSICAL(addr) ((addr) | 0x80)
#define STRING_LEN_BYTE2UNICODE(n) (2 + ((n)<<1))
//--------------------------------------------------------------------+