- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# conf_usb.h File Reference

`#include "modules/usb/usb_commun.h"`
`#include "modules/usb/usb_commun_ms.h"`

Include dependency graph for conf_usb.h:

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

Go to the source code of this file.

## Defines
#define | USB_HOST_FEATURE ENABLED
#define | USB_DEVICE_FEATURE ENABLED
#define | USE_USB_PADS_REGULATOR ENABLE
#define | VID_PID_TABLE
#define | CLASS_SUBCLASS_PROTOCOL
#define | USB_SUPPORT_MS_SECTOR_WR_MAX 8
#define | SIZEOF_DATA_STAGE 250
| The size of RAM buffer reserved of descriptors manipulation.
#define | DEVICE_BASE_ADDRESS 0x05
| The address that will be assigned to the connected device.
#define | MAX_EP_PER_INTERFACE 3
| The maximum number of endpoints per interface supported.
#define | MAX_INTERFACE_FOR_DEVICE 3
| The maximum number of interface supported per device.
#define | MAX_DEVICE_IN_USB_TREE 4
| The maximum number of devices in the USB tree.
#define | SAVE_INTERRUPT_PIPE_FOR_DMS_INTERFACE ENABLE
#define | USB_HUB_SUPPORT ENABLE
| Configuration for Hub support in host mode.
#define | USB_MAX_HUB_NUMBER 4
#define | HUB_MAX_NB_PORT 4
#define | HOST_STRICT_VID_PID_TABLE DISABLE
| 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 DISABLE
| Force WDT reset upon ID pin change.
#define | TIMEOUT_DELAY_ENABLE ENABLE
| Enable Timeout delay (time) for host transfer.
#define | TIMEOUT_DELAY 20
| 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() host_sof_action()
#define | Host_suspend_action()
#define | Host_hwup_action()
#define | Host_device_not_supported_action()
#define | Host_device_class_not_supported_action()
#define | Host_device_supported_action()
#define | Host_device_error_action()
#define | USB_DEVICE_SN_USE ENABLE
#define | USE_DEVICE_SN_UNIQUE DISABLE
#define | EP_MS_IN 1
#define | EP_MS_OUT 2
#define | Usb_unicode(a) ((U16)(a))
#define | USB_REMOTE_WAKEUP_FEATURE DISABLE
#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()
#define | Scsi_start_read_action() Led1_on()
#define | Scsi_stop_read_action() Led1_off()
#define | Scsi_start_write_action() Led3_on()
#define | Scsi_stop_write_action() Led3_off()
## Functions
void | set_power_down_mode (void)
| This function makes the AVR core enter power down mode.
void | host_sof_action (void)
void | sof_action (void)

## Detailed Description

This file contains the possible external configuration of the USB - Compiler: IAR EWAVR and GNU GCC for AVR

- Supported devices: AT90USB1287, AT90USB1286, AT90USB647, AT90USB646
  Author:
    Atmel Corporation: http://www.atmel.com
    Support and FAQ: http://support.atmel.no/

Definition in file conf_usb.h.