Atmel Software Framework

common/utils/stdio/stdio_usb/stdio_usb_example/conf_usb.h File Reference

USB configuration file for CDC application.

Copyright (c) 2009-2013 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <udi_cdc_conf.h>
#include <stdio_usb.h>

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 USB Device Configuration. More...
 
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_CDC
 
#define USB_DEVICE_MAJOR_VERSION   1
 
#define USB_DEVICE_MINOR_VERSION   0
 
#define USB_DEVICE_POWER   100
 
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"
 
#define USB_DEVICE_PRODUCT_NAME   "CDC"
 
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
 
#define UDC_VBUS_EVENT(b_vbus_high)
 Device speeds support Low speed not supported by CDC. More...
 
#define UDC_SOF_EVENT()
 
#define UDC_SUSPEND_EVENT()
 
#define UDC_RESUME_EVENT()
 
#define UDI_CDC_ENABLE_EXT(port)   stdio_usb_enable()
 USB Interface Configuration. More...
 
#define UDI_CDC_DISABLE_EXT(port)   stdio_usb_disable()
 
#define UDI_CDC_RX_NOTIFY(port)
 
#define UDI_CDC_TX_EMPTY_NOTIFY(port)
 
#define UDI_CDC_SET_CODING_EXT(port, cfg)
 
#define UDI_CDC_SET_DTR_EXT(port, set)
 
#define UDI_CDC_SET_RTS_EXT(port, set)
 
#define UDI_CDC_DEFAULT_RATE   115200
 Default configuration of communication port. More...
 
#define UDI_CDC_DEFAULT_STOPBITS   CDC_STOP_BITS_1
 
#define UDI_CDC_DEFAULT_PARITY   CDC_PAR_NONE
 
#define UDI_CDC_DEFAULT_DATABITS   8
 

#define UDC_RESUME_EVENT ( )
#define UDC_SOF_EVENT ( )
#define UDC_SUSPEND_EVENT ( )
#define UDC_VBUS_EVENT (   b_vbus_high)

Device speeds support Low speed not supported by CDC.

To authorize the High speed USB Device Callbacks definitions

#define UDI_CDC_DEFAULT_DATABITS   8
#define UDI_CDC_DEFAULT_PARITY   CDC_PAR_NONE
#define UDI_CDC_DEFAULT_RATE   115200

Default configuration of communication port.

#define UDI_CDC_DEFAULT_STOPBITS   CDC_STOP_BITS_1
#define UDI_CDC_DISABLE_EXT (   port)    stdio_usb_disable()
#define UDI_CDC_ENABLE_EXT (   port)    stdio_usb_enable()

USB Interface Configuration.

Configuration of CDC interfaceInterface callback definition

#define UDI_CDC_RX_NOTIFY (   port)
#define UDI_CDC_SET_CODING_EXT (   port,
  cfg 
)
#define UDI_CDC_SET_DTR_EXT (   port,
  set 
)
#define UDI_CDC_SET_RTS_EXT (   port,
  set 
)
#define UDI_CDC_TX_EMPTY_NOTIFY (   port)
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
#define USB_DEVICE_MAJOR_VERSION   1
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"
#define USB_DEVICE_MINOR_VERSION   0
#define USB_DEVICE_POWER   100
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_ASF_CDC
#define USB_DEVICE_PRODUCT_NAME   "CDC"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

Device definition