conf_usb.h File Reference


Detailed Description

USB configuration file.

This file contains the possible external configuration of the USB.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file conf_usb.h.

#include "compiler.h"
#include "board.h"
#include "isp.h"
#include "usb_ids.h"

Go to the source code of this file.

Defines

#define CLASS_SUBCLASS_PROTOCOL   {APPLICATION_CLASS, DFU_SUBCLASS, DFU_MODE_PROTOCOL}
 CLASS/SUBCLASS/PROTOCOL supported table list.
#define DEVICE_ADDRESS   0x05
 The address that will be assigned to the connected device.
#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 enabled.
#define Host_device_class_not_supported_action()
#define Host_device_connection_action()
#define Host_device_disconnection_action()
#define Host_device_error_action()
#define Host_device_not_supported_action()
#define Host_device_supported_action()
#define HOST_ERROR_RESTART   ENABLE
 When host error state detected, go to detached state.
#define Host_hwup_action()
#define Host_new_device_connection_action()
#define Host_sof_action()
#define HOST_STRICT_VID_PID_TABLE   DISABLE
 The host controller will be limited to the strict VID/PID list.
#define Host_suspend_action()
#define Host_user_check_class_action(x)
 During the verification of the device class by the host (after device enumeration), this call-back function allows to look more deeply into the configuration descriptor.
#define ID_PIN_CHANGE_GENERATE_RESET   ENABLE
 Force CPU reset upon ID pin change.
#define LOG_STR(str)   ((void)(str))
 Debug trace macro.
#define MAX_EP_PER_INTERFACE   3
 The maximal number of endpoints per interface supported.
#define MAX_INTERFACE_SUPPORTED   0x03
 The maximal number of interfaces that can be supported (composite device).
#define NAK_RECEIVE_TIMEOUT   0x0FFF
 Number of NAK handshakes before time-out for receive functions (up to 0xFFFF).
#define NAK_SEND_TIMEOUT   0x0FFF
 Number of NAK handshakes before time-out for transmit functions (up to 0xFFFF).
#define NAK_TIMEOUT_ENABLE   DISABLE
 Enable cpt NAK time-out for host transfer.
#define NB_ENDPOINTS   1
#define SIZEOF_DATA_STAGE   250
 The size of RAM buffer reserved for descriptor handling.
#define TIMEOUT_DELAY   10
 Delay 1/4 s (250 ms) before time-out value.
#define TIMEOUT_DELAY_ENABLE   ENABLE
 Enable time-out delay for host transfer.
#define USB_DEVICE_FEATURE   ENABLED
 ENABLE to activate the device software framework support.
#define USB_HOST_FEATURE   DISABLED
 ENABLE to activate the host software framework support.
#define USB_HOST_PIPE_INTERRUPT_TRANSFER   DISABLE
 USB host pipes transfers use USB communication interrupt (allows to use non-blocking functions).
#define Usb_id_transition_action()
#define USB_INT_LEVEL   AVR32_INTC_INT0
 USB interrupt priority level.
#define Usb_reset_action()
#define Usb_resume_action()
#define Usb_set_configuration_action()
#define Usb_sof_action()
#define Usb_suspend_action()
#define Usb_vbus_off_action()
#define Usb_vbus_on_action()   sys_clk_gen_start()
#define Usb_wake_up_action()
#define User_configure_endpoint()
 If no auto configuration of EP, map here user function.
#define VID_PID_TABLE   {ATMEL_VID, 1, ISP_PID}
 VID/PID supported table list.

Functions

void host_sof_action (void)
void host_suspend_action (void)
void usb_sof_action (void)
void usb_suspend_action (void)


Generated on Fri Feb 19 02:32:46 2010 for AVR32 - USB DFU Example: ISP by  doxygen 1.5.5