diff options
| author | Grissiom <[email protected]> | 2013-05-12 14:48:46 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-05-12 15:43:29 +0800 |
| commit | f0d50a7b3634044b4bddad39fde01d474b5c6e9d (patch) | |
| tree | 26233be0c25e8e7e519ed3a99cc4c36264b047ed /components/drivers/include | |
| parent | f1e34eef113791bcade4befaa60b347e8cbc4ba7 (diff) | |
usbdevice/core: use static thread instead of dynamic thread
It also add two configurations for the USB device even loop thread:
RT_USBD_THREAD_STACK_SZ to set the stack size, default to 2048
RT_USBD_THREAD_PRIO to set the priority, default to 8
You can overwrite the default values in rtconfig.h
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/usb_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/usb_common.h b/components/drivers/include/drivers/usb_common.h index 5881e11dc6..9b7f3873e1 100644 --- a/components/drivers/include/drivers/usb_common.h +++ b/components/drivers/include/drivers/usb_common.h @@ -374,6 +374,20 @@ typedef struct ustorage_csw* ustorage_csw_t; #pragma pack() +/* + * USB device event loop thread configurations + */ +/* the stack size of USB thread */ +#ifndef RT_USBD_THREAD_STACK_SZ +#define RT_USBD_THREAD_STACK_SZ 2048 +#endif + +/* the priority of USB thread */ +#ifndef RT_USBD_THREAD_PRIO +#define RT_USBD_THREAD_PRIO 8 +#endif + + #ifdef __cplusplus } #endif |
