From b2cbb10564ee5c9c2a78519973bef71e4db364f9 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 29 Sep 2010 12:50:10 +0000 Subject: [PATCH] USB: provide low-level internal TX and RX buffers Some USB controllers may require specific constraints on the buffers used for the endpoint transfers (e.g., a proper memory alignment). Add CONFIG_USB_RXBUFSIZE and CONFIG_USB_TXBUFSIZE to the usb module configuration parameters to define the size of these buffers. If a low-level driver has specific memory alignment constraints it can define such buffers internally using the proper alignment. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4342 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/cfg_usb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bertos/cfg/cfg_usb.h b/bertos/cfg/cfg_usb.h index 9875fc09..940d7618 100644 --- a/bertos/cfg/cfg_usb.h +++ b/bertos/cfg/cfg_usb.h @@ -54,4 +54,18 @@ */ #define USB_LOG_FORMAT LOG_FMT_TERSE +/** + * Size of the USB outbound buffer [bytes]. + * $WIZ$ type = "int" + * $WIZ$ min = 2 + */ +#define CONFIG_USB_TXBUFSIZE 64 + +/** + * Size of the USB inbound buffer [bytes]. + * $WIZ$ type = "int" + * $WIZ$ min = 2 + */ +#define CONFIG_USB_RXBUFSIZE 64 + #endif /* CFG_USB_H */ -- 2.25.1