conf_usb.h File Reference

,v More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define USB_OTG_FEATURE   ENABLED
 ENABLE to enable OTG module (support A- and B- Device roles).
#define OTG_VBUS_AUTO_WHEN_A_PLUG   DISABLED
 Selects the general Vbus delivery mode : insertion OR usage based.
#define OTG_MESSAGING_OUTPUT   OTGMSG_FAIL
 Selects the messaging method for OTG No Silent Failure spec.
#define OTG_USE_TIMER   TIMER16_1
 Timer selection for OTG timings requirements.
#define USE_TIMER16   BOTH_TIMER16
 Possible values : OTG_USE_TIMER (if no more timer needed), or BOTH_TIMER16 (if user application uses another timer).
#define OTG_ENABLE_HNP_AFTER_SRP   ENABLED
 ENABLE to make the A-Device send a SetFeature(b_hnp_enable) just after a SRP has been received.
#define OTG_ADEV_SRP_REACTION   VBUS_PULSE
 Selects the SRP pulse for which the A Device will react and rise Vbus.
#define USB_HOST_FEATURE   ENABLED
 ENABLE to activate the host software library support.
#define USB_DEVICE_FEATURE   ENABLED
 ENABLE to activate the device software library support.
#define USE_USB_PADS_REGULATOR   ENABLE
 Enable the internal regulator for USB pads.
#define HID_CLASS   0x03
#define MS_CLASS   0x08
#define NO_SUBCLASS   0x00
#define BOOT_SUBCLASS   0x01
#define MOUSE_PROTOCOL   0x02
#define NO_PROTOCOL   0x00
#define VID_PID_TABLE   { 0x03EB, 1, 0x2031 }
 VID/PID supported table list.
#define CLASS_SUBCLASS_PROTOCOL
 CLASS/SUBCLASS_PROTOCOL supported table list.
#define SIZEOF_DATA_STAGE   250
 The size of RAM buffer reserved of descriptors manipulation.
#define DEVICE_ADDRESS   0x05
 The address that will be assigned to the connected device.
#define MAX_INTERFACE_SUPPORTED   0x03
 The maximum number of interface that can be supported (composite device).
#define MAX_EP_PER_INTERFACE   3
 The maximum number of endpoints per interface supported.
#define HOST_STRICT_VID_PID_TABLE   ENABLE
 The host controller will be limited to the strict VID/PID list.
#define HOST_AUTO_CFG_ENDPOINT   ENABLE
 Try to configure the host pipe according to the device descriptors received.
#define HOST_CONTINUOUS_SOF_INTERRUPT   DISABLE
 Host start of frame interrupt always enable.
#define HOST_ERROR_RESTART   ENABLE
 When Host error state detected, goto unattached state.
#define USB_HOST_PIPE_INTERRUPT_TRANSFER   ENABLE
 USB host pipes transfers use USB communication interrupt (allows to use none blocking functions).
#define ID_PIN_CHANGE_GENERATE_RESET   ENABLE
 Force WDT reset upon ID pin change.
#define TIMEOUT_DELAY_ENABLE   ENABLE
 Enable Timeout delay (time) for host transfer.
#define TIMEOUT_DELAY   10
 delay 1/4sec (250ms) before timeout value
#define NAK_TIMEOUT_ENABLE   DISABLE
 Enable cpt NAK Timeout for host transfer.
#define NAK_SEND_TIMEOUT   0x0FFF
 Number of NAK handshake before timeout for transmit functions (up to 0xFFFF).
#define NAK_RECEIVE_TIMEOUT   0x0FFF
 NAKNumber of NAK handshake before timeout for receive functions (up to 0xFFFF).
#define SOFTWARE_VBUS_CTRL   ENABLE
 For reduced host only allows to control VBUS generator with PIO PE.7.
#define User_configure_endpoint()
 If no auto configuration of EP, map here user function.
#define Usb_id_transition_action()
#define Host_device_disconnection_action()
#define Host_device_connection_action()
#define Host_sof_action()
#define Host_suspend_action()
#define Host_hwup_action()
#define Host_vbus_action()
#define Host_device_not_supported_action()   otg_not_supported_device()
#define Host_device_supported_action()
#define Host_device_error_action()   otg_not_supported_device()
#define NB_ENDPOINTS   1
#define EP_SPIDER_IN   1
#define Usb_unicode(a)   ((U16)(a))
#define Usb_sof_action()
#define Usb_wake_up_action()
#define Usb_resume_action()
#define Usb_suspend_action()
#define Usb_reset_action()
#define Usb_vbus_on_action()
#define Usb_vbus_off_action()
#define Usb_set_configuration_action()

Functions

void set_power_down_mode (void)
 set_power_down_mode.
void host_sof_action (void)

Variables

volatile U8 spider_connected


Detailed Description

,v

Copyright (c) 2006 Atmel.

Please read file license.txt for copyright notice.

This file contains the possible external configuration of the USB

Version:
1.1 at90usb128-otg-dual_role-toggle-1_0_0
Id
conf_usb.h,v 1.1 2007/02/16 13:10:39 arobert Exp
Todo:
Bug:

Definition in file conf_usb.h.


Generated on Mon Feb 19 09:31:49 2007 for Atmel by  doxygen 1.5.1-p1