From 318a058d3cf4f76221febead5fc0792a2387a310 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 27 Oct 2013 19:34:36 +0700 Subject: static assert to check OSAL_QUEUE_DEF's queue_depth parameter < 256 enable HOST_HCD_XFER_INTERRUPT by default (previously only enabled with HID), as it is widely used implement tusbh_cdc_is_busy add compilation switch in usbh enumeration for hub rewrite CDC serial application to address usb-serial race condition --- tinyusb/osal/osal_none.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tinyusb/osal') diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index ee7c2fdd2..80ae80fd3 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -263,6 +263,7 @@ typedef osal_queue_t * osal_queue_handle_t; // use to declare a queue, within the scope of tinyusb, should only use primitive type only #define OSAL_QUEUE_DEF(name, queue_depth, type)\ + STATIC_ASSERT(queue_depth < 256, "OSAL Queue only support up to 255 depth");\ type name##_buffer[queue_depth];\ osal_queue_t name = {\ .buffer = (uint8_t*) name##_buffer,\ -- cgit v1.3.1