Xmega Application Note


conf_usb.h File Reference


Detailed Description

This file contains the possible external configuration of the USB.

Application note:
AVR1907: Xplain Evaluation Board
Documentation
For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
Revision
3123
Date
2010-01-13 14:35:03 +0100 (on, 13 jan 2010)

Copyright (c) 2010, Atmel Corporation All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. The name of ATMEL may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file conf_usb.h.

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

Go to the source code of this file.

Defines

#define INT_EP   0x03
#define NB_ENDPOINTS   4
#define RX_EP   0x02
#define TX_EP   0x01
#define Usb_reset_action()
#define Usb_resume_action()
#define Usb_set_configuration_action()
#define Usb_sof_action()   sof_action();
#define Usb_suspend_action()   suspend_action();
#define Usb_unicode(a)   ((uint16_t)(a))
#define Usb_vbus_off_action()
#define Usb_vbus_on_action()
#define Usb_wake_up_action()

Functions

void sof_action (void)
 Start of frame action.
void suspend_action (void)
 Suspend action management.


Define Documentation

#define INT_EP   0x03

Definition at line 56 of file conf_usb.h.

Referenced by usb_user_endpoint_init().

#define NB_ENDPOINTS   4

Number of endpoints in the application including control endpoint

Definition at line 51 of file conf_usb.h.

Referenced by usb_enum_var_init().

#define RX_EP   0x02

Definition at line 55 of file conf_usb.h.

Referenced by uart_usb_getchar(), uart_usb_test_hit(), and usb_user_endpoint_init().

#define TX_EP   0x01

Definition at line 54 of file conf_usb.h.

Referenced by uart_usb_flush(), uart_usb_putchar(), and usb_user_endpoint_init().

 
#define Usb_reset_action (  ) 

Definition at line 74 of file conf_usb.h.

Referenced by ISR().

 
#define Usb_resume_action (  ) 

Definition at line 72 of file conf_usb.h.

Referenced by ISR().

 
#define Usb_set_configuration_action (  ) 

Definition at line 77 of file conf_usb.h.

Referenced by usb_set_configuration().

 
#define Usb_sof_action (  )     sof_action();

Definition at line 70 of file conf_usb.h.

Referenced by ISR().

 
#define Usb_suspend_action (  )     suspend_action();

Definition at line 73 of file conf_usb.h.

Referenced by ISR().

#define Usb_unicode (  )     ((uint16_t)(a))

Definition at line 59 of file conf_usb.h.

 
#define Usb_vbus_off_action (  ) 

Definition at line 76 of file conf_usb.h.

Referenced by ISR().

 
#define Usb_vbus_on_action (  ) 

Definition at line 75 of file conf_usb.h.

Referenced by ISR(), and usb_device_task().

 
#define Usb_wake_up_action (  ) 

Definition at line 71 of file conf_usb.h.

Referenced by ISR().


Function Documentation

void sof_action ( void   ) 

Start of frame action.

This function increments the cpt_sof counter each times the USB Start Of Frame interrupt subroutine is executed (1ms) Usefull to manage time delays

Definition at line 114 of file cdc_task.c.

References cpt_sof.

00115 {
00116         cpt_sof++;
00117 }

void suspend_action ( void   ) 

Suspend action management.

Use this function to handle the suspend command.

Definition at line 171 of file usb_task.c.

00172 {
00173         sei();
00174         //Enter_sleep(POWER_DOWN_MODE);
00175 }

@DOC_TITLE@
Generated on Mon Jan 18 09:26:09 2010 for AVR1907 Xplain USB Gateway by doxygen 1.5.5