Atmel Software Framework

avr32/applications/uc3-audio-player/conf/conf_usb.h File Reference
#include "conf_audio_player.h"
#include "compiler.h"
#include "board.h"
#include "usb_ids.h"
#include "twi.h"
#include "pdca.h"

Macros

#define CPU_RESET_CALLBACK()
 Reset callback - called just before the CPU reset takes in place. More...
 
#define DEVICE_ADDRESS   0x05
 The address that will be assigned to the connected device. More...
 
#define EP_AUDIO_IN   6
 
#define EP_AUDIO_OUT   5
 
#define EP_KBD_IN   1
 
#define HOST_AUTO_CFG_ENDPOINT   ENABLE
 Try to configure the host pipe according to the device descriptors received. More...
 
#define HOST_CONTINUOUS_SOF_INTERRUPT   DISABLE
 Host Start-of-Frame interrupt always enabled. More...
 
#define Host_device_class_not_supported_action()
 
#define Host_device_connection_action()
 
#define Host_device_error_action()
 
#define Host_device_not_supported_action()
 
#define Host_device_supported_action()
 
#define HOST_ERROR_RESTART   DISABLE
 When host error state detected, go to detached state. More...
 
#define Host_hwup_action()
 
#define Host_int_action()
 
#define Host_sof_action()
 
#define HOST_STRICT_VID_PID_TABLE   DISABLE
 The host controller will be limited to the strict VID/PID list. More...
 
#define Host_suspend_action()
 
#define HOST_VBUS_LOW_TIMEOUT   ((2000 * (unsigned long long) 60000000) / 1000)
 The time in cycle number that the VBus need to be dropped down after a "device unplugged" has been detected if no timeouts are needed, then this constant should not be defined. More...
 
#define ID_PIN_CHANGE_GENERATE_RESET   ENABLE
 Force CPU reset upon ID pin change. More...
 
#define LOG_STR(str)   ((void)(str))
 Debug trace macro. More...
 
#define MAX_EP_PER_INTERFACE   3
 The maximal number of endpoints per interface supported. More...
 
#define NAK_RECEIVE_TIMEOUT   0x0FFF
 Number of NAK handshakes before time-out for receive functions (up to 0xFFFF) More...
 
#define NAK_SEND_TIMEOUT   0x0FFF
 Number of NAK handshakes before time-out for transmit functions (up to 0xFFFF) More...
 
#define NAK_TIMEOUT_ENABLE   DISABLE
 Enable cpt NAK time-out for host transfer. More...
 
#define NB_ENDPOINTS   3
 
#define SIZEOF_DATA_STAGE   250
 The size of RAM buffer reserved for descriptor handling. More...
 
#define TIMEOUT_DELAY   10
 Delay (unit is in 1/4 s - 250 ms) before time-out value. More...
 
#define TIMEOUT_DELAY_ENABLE   ENABLE
 Enable time-out delay for host transfer. More...
 
#define TIMER_USB_STREAM_MONITOR   700
 Period (in ms) of the polling of the buffers monitoring. More...
 
#define USB_DEVICE_SCSI_FEATURE   false
 
#define USB_HOST_PIPE_INTERRUPT_TRANSFER   DISABLE
 USB host pipes transfers use USB communication interrupt (allows to use non-blocking functions) More...
 
#define Usb_id_transition_action()
 
#define USB_INT_LEVEL   3
 USB interrupt priority level. More...
 
#define Usb_reset_action()
 
#define Usb_resume_action()
 
#define USB_RESYNC_AUDIO_STREAM   true
 true to activate the USB audio resynchronization More...
 
#define Usb_set_configuration_action()   Usb_enable_sof_interrupt()
 
#define Usb_sof_action()   usb_sof_action()
 
#define USB_STREAM_BUFFER_NUMBER   16
 Number of buffers used in the USB stream FIFO. More...
 
#define USB_STREAM_BUFFER_SIZE   256
 Size of a buffer (in bytes) used in the USB stream FIFO. More...
 
#define USB_STREAM_RESYNC_PPM_STEPS   10
 Steps in PPM for the resynchronization. More...
 
#define Usb_suspend_action()
 
#define Usb_vbus_off_action()
 
#define Usb_vbus_on_action()
 
#define Usb_wake_up_action()
 
#define User_configure_endpoint()
 If no auto configuration of EP, map here user function. More...
 

Functions

void usb_sof_action (void)
 usb_sof_action More...
 
void usb_suspend_action (void)