X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fat91sam7x-ek%2Fbenchmark%2Fat91sam7x-ek_context_switch%2Fcfg%2Fcfg_usb.h;fp=boards%2Fat91sam7x-ek%2Fbenchmark%2Fat91sam7x-ek_context_switch%2Fcfg%2Fcfg_usb.h;h=dbfd6fe1f13afc0a70e83e9dfd97f6521971d1a5;hb=242d8ea69e730f74b25ae3e1e8897ea61b81c250;hp=0000000000000000000000000000000000000000;hpb=48f658cb2360654d8ae4e17adf660dbea5a9e72e;p=bertos.git diff --git a/boards/at91sam7x-ek/benchmark/at91sam7x-ek_context_switch/cfg/cfg_usb.h b/boards/at91sam7x-ek/benchmark/at91sam7x-ek_context_switch/cfg/cfg_usb.h new file mode 100644 index 00000000..dbfd6fe1 --- /dev/null +++ b/boards/at91sam7x-ek/benchmark/at91sam7x-ek_context_switch/cfg/cfg_usb.h @@ -0,0 +1,85 @@ +/** + * \file + * + * + * \author Andrea Righi + * + * \brief Configuration file for the USB driver module + */ + +#ifndef CFG_USB_H +#define CFG_USB_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define USB_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#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 */