Go to the documentation of this file.
22#ifndef __VSF_USB_CFG_H__
23#define __VSF_USB_CFG_H__
28# define VSF_USB_ASSERT VSF_ASSERT
31#if VSF_USE_USB_DEVICE == ENABLED
33# if VSF_USBD_CFG_RAW_MODE == ENABLED
34# define VSF_USBD_CFG_AUTOSETUP DISABLED
37# if defined(VSF_USBD_CFG_DRV_LV0_OO)
38# undef __VSF_USBD_CFG_DRV_INTERFACE
39# if defined(VSF_USBD_CFG_DRV_LV0_OO) \
40 && (!defined(VSF_USBD_CFG_DRV_LV0_OO_PREFIX) || !defined(VSF_USBD_CFG_DRV_LV0_OO_OBJ))
41# error VSF_USBD_CFG_DRV_LV0_OO_PREFIX and VSF_USBD_CFG_DRV_LV0_OO_OBJ MUST be defined to use VSF_USBD_CFG_DRV_LV0_OO
44# define __VSF_USBD_CFG_DRV_INTERFACE
48# if VSF_USBD_USE_CDCACM == ENABLED
49# ifndef VSF_USBD_USE_CDC
50# define VSF_USBD_USE_CDC ENABLED
51# elif VSF_USBD_USE_CDC != ENABLED
52# #warning "VSF_USBD_USE_CDC MUST be enabled to use VSF_USBD_USE_CDCACM"
53# undef VSF_USBD_USE_CDC
54# define VSF_USBD_USE_CDC ENABLED
60#ifndef VSF_USBD_CFG_STREAM_EN
61# if VSF_USE_STREAM == ENABLED || VSF_USE_SIMPLE_STREAM == ENABLED
62# define VSF_USBD_CFG_STREAM_EN ENABLED
64# define VSF_USBD_CFG_STREAM_EN DISABLED
68#if (VSF_USBD_CFG_STREAM_EN == ENABLED) \
69 && (VSF_USE_STREAM != ENABLED) \
70 && (VSF_USE_SIMPLE_STREAM != ENABLED)
71# error "VSF_USE_STREAM or VSF_USE_SIMPLE_STREAM must be enabled to use VSF_USBD_CFG_STREAM_EN"
74#if VSF_USE_USB_HOST == ENABLED
75# if VSF_USBH_USE_ECM == ENABLED
76# undef VSF_USBH_USE_CDC
77# define VSF_USBH_USE_CDC ENABLED