Microchip® Advanced Software Framework

conf_usb.h File Reference
#include "board.h"
#include "tracedump.h"
#include "supervisor.h"
#include "usb_ids.h"

Macros

#define CLASS_SUBCLASS_PROTOCOL
 CLASS/SUBCLASS/PROTOCOL supported table list. More...
 
#define DEVICE_ADDRESS   0x05
 The address that will be assigned to the connected device. More...
 
#define EP_MS_IN   1
 
#define EP_MS_OUT   2
 
#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()   ( v_supervisor_Device_Connects() )
 
#define Host_device_disconnection_action()   ( v_supervisor_Device_Disconnects() )
 
#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. More...
 
#define Host_hwup_action()
 
#define Host_new_device_connection_action()   (ms_new_device_connected = true)
 
#define Host_sof_action()   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_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. More...
 
#define ID_PIN_CHANGE_GENERATE_RESET   ENABLE
 Force CPU reset upon ID pin change. More...
 
#define LOG_STR(str)   NAKED_TRACE_COM2(str)
 Debug trace macro. More...
 
#define MAX_EP_PER_INTERFACE   3
 The maximal number of endpoints per interface supported. More...
 
#define MAX_INTERFACE_SUPPORTED   0x03
 The maximal number of interfaces that can be supported (composite device) 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 SBC_PRODUCT_ID   "UC3 CTRLPANEL "
 
#define SBC_REVISION_ID   "0.00"
 
#define SBC_VENDOR_ID   "ATMEL "
 
#define Scsi_start_read_action()
 
#define Scsi_start_write_action()
 
#define Scsi_stop_read_action()
 
#define Scsi_stop_write_action()
 
#define SIZEOF_DATA_STAGE   250
 The size of RAM buffer reserved for descriptor handling. More...
 
#define TIMEOUT_DELAY   10
 Delay 1/4 s (250 ms) before time-out value. More...
 
#define TIMEOUT_DELAY_ENABLE   ENABLE
 Enable time-out delay for host transfer. More...
 
#define USB_DEVICE_FEATURE   true
 ENABLE to activate the device software framework support. More...
 
#define USB_HOST_FEATURE   true
 ENABLE to activate the host software framework support. More...
 
#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   AVR32_INTC_INT0
 USB interrupt priority level. More...
 
#define Usb_reset_action()
 
#define Usb_resume_action()
 
#define Usb_set_configuration_action()
 
#define Usb_sof_action()   usb_sof_action()
 
#define Usb_suspend_action()
 
#define Usb_vbus_off_action()   ( v_supervisor_Host_Disconnects() )
 
#define Usb_vbus_on_action()   ( v_supervisor_Host_Connects() )
 
#define Usb_wake_up_action()
 
#define VID_PID_TABLE   {ATMEL_VID, 1, EVK1100_CTRL_PANEL_DEMO_PID}
 VID/PID supported table list. More...
 

Functions

void host_sof_action (void)
 host_sof_action More...
 
void host_suspend_action (void)
 
void usb_sof_action (void)
 usb_sof_action More...
 
void usb_suspend_action (void)
 

Variables

volatile bool ms_connected
 
volatile bool ms_new_device_connected