X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_usb.h;h=dbfd6fe1f13afc0a70e83e9dfd97f6521971d1a5;hb=e8d23916ace140efd3f62d480f0f5cd4481cb828;hp=9875fc098e1004203456eaea7c1c272606d0adb7;hpb=7713a5e329a770f53d53e39e9b3b8dae55c71614;p=bertos.git diff --git a/bertos/cfg/cfg_usb.h b/bertos/cfg/cfg_usb.h index 9875fc09..dbfd6fe1 100644 --- a/bertos/cfg/cfg_usb.h +++ b/bertos/cfg/cfg_usb.h @@ -54,4 +54,32 @@ */ #define USB_LOG_FORMAT LOG_FMT_TERSE +/** + * Size of the USB buffer used for endpoint transfers [bytes]. + * $WIZ$ type = "int" + * $WIZ$ min = 2 + */ +#define CONFIG_USB_BUFSIZE 64 + +/** + * Maximum number of USB device interfaces (default = 1). + * $WIZ$ type = "int" + * $WIZ$ min = 1 + */ +#define CONFIG_USB_INTERFACE_MAX 1 + +/** + * Maximum number of allocated endpoints (0 = auto). + * $WIZ$ type = "int" + * $WIZ$ min = 0 + */ +#define CONFIG_USB_EP_MAX 0 + +/** + * Maximum packet size of the control endpoint 0 [bytes]. + * $WIZ$ type = "int" + * $WIZ$ min = 8 + */ +#define CONFIG_EP0_MAX_SIZE 8 + #endif /* CFG_USB_H */