Xmega Application Note


conf_usb.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00047 #ifndef _CONF_USB_H_
00048 #define _CONF_USB_H_
00049 
00051 #define NB_ENDPOINTS           4
00052 
00053 /* Endpoint allocation */
00054 #define TX_EP               0x01
00055 #define RX_EP               0x02
00056 #define INT_EP              0x03
00057 
00058 /* Macro to convert char (uint8_t) to unicode (uint16_t) */
00059 #define Usb_unicode(a)  ((uint16_t)(a))
00060 
00061 /* Define the USB General vector for IAR compiler. */
00062 #if defined( __ICCAVR__ )
00063         #define USB_GEN_vect USB_General_vect
00064 #endif
00065 
00066 /* USB device custom actions
00067  * write here the action to associate to each USB event
00068  * be carefull not to waste time in order not disturbing the functions
00069  */
00070 #define Usb_sof_action()         sof_action();
00071 #define Usb_wake_up_action()
00072 #define Usb_resume_action()
00073 #define Usb_suspend_action()     suspend_action();
00074 #define Usb_reset_action()
00075 #define Usb_vbus_on_action()
00076 #define Usb_vbus_off_action()
00077 #define Usb_set_configuration_action()
00078 
00079 
00080 /* External dependencies */
00081 extern void sof_action(void);
00082 extern void suspend_action(void);
00083 
00084 #endif /* _CONF_USB_H_ */
@DOC_TITLE@
Generated on Mon Jan 18 09:26:08 2010 for AVR1907 Xplain USB Gateway by doxygen 1.5.5