From 28e78f23f7c56356f1d0d8b21d7705b4e9f08856 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 8 Nov 2010 14:25:21 +0000 Subject: [PATCH] Updare cfg files. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4539 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../examples/sd_fat/cfg/cfg_usb.h | 64 +++++++++++++++ .../examples/sd_fat/cfg/cfg_usbmouse.h | 78 +++++++++++++++++++ .../examples/sd_fat/cfg/cfg_usbser.h | 78 +++++++++++++++++++ 3 files changed, 220 insertions(+) create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usb.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbmouse.h create mode 100644 boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbser.h diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usb.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usb.h new file mode 100644 index 00000000..e5a282b1 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usb.h @@ -0,0 +1,64 @@ +/** + * \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 + +#endif /* CFG_USB_H */ diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbmouse.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbmouse.h new file mode 100644 index 00000000..73143284 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbmouse.h @@ -0,0 +1,78 @@ +/** + * \file + * + * + * \author Andrea Righi + * + * \brief Configuration file for the usbmouse driver module + */ + +#ifndef CFG_USBMOUSE_H +#define CFG_USBMOUSE_H + +/** + * Enable the usbmouse module. + * + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_USBMOUSE 0 + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define USB_MOUSE_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define USB_MOUSE_LOG_FORMAT LOG_FMT_TERSE + +/** + * USB vendor ID (please change this in your project, using a valid ID number!). + * + * $WIZ$ type = "hex" + */ +#define USB_MOUSE_VENDOR_ID 0xffff + +/** + * USB product ID (please change this in your project, using a valid ID number!). + * + * $WIZ$ type = "hex" + */ +#define USB_MOUSE_PRODUCT_ID 0x0000 + +#endif /* CFG_USBMOUSE_H */ diff --git a/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbser.h b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbser.h new file mode 100644 index 00000000..1fa44e73 --- /dev/null +++ b/boards/at91sam7x-ek/examples/sd_fat/cfg/cfg_usbser.h @@ -0,0 +1,78 @@ +/** + * \file + * + * + * \author Andrea Righi + * + * \brief Configuration file for the USB serial driver module + */ + +#ifndef CFG_USBSER_H +#define CFG_USBSER_H + +/** + * Enable the usb-serial module. + * + * $WIZ$ type = "autoenabled" + */ +#define CONFIG_USBSER 0 + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define USB_SERIAL_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define USB_SERIAL_LOG_FORMAT LOG_FMT_TERSE + +/** + * USB vendor ID (please change this in your project, using a valid ID number!). + * + * $WIZ$ type = "hex" + */ +#define USB_SERIAL_VENDOR_ID 0x05f9 + +/** + * USB product ID (please change this in your project, using a valid ID number!). + * + * $WIZ$ type = "hex" + */ +#define USB_SERIAL_PRODUCT_ID 0xffff + +#endif /* CFG_USBSER_H */ -- 2.25.1