conf_usb.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef _CONF_USB_H_
00015 #define _CONF_USB_H_
00016 
00017 
00018 
00022 
00023 
00024    // _________________ USB MODE CONFIGURATION ____________________________
00025    //
00030 
00034       #define USB_DEVICE_FEATURE          ENABLED
00035 
00037 
00038    // _________________ USB REGULATOR CONFIGURATION _______________________
00039    //
00042 
00047 #ifndef USE_USB_PADS_REGULATOR
00048    //#define USE_USB_PADS_REGULATOR   ENABLE      // Possible values ENABLE or DISABLE
00049 #define USE_USB_PADS_REGULATOR   DISABLE      // Possible values ENABLE or DISABLE
00050 #endif
00052 
00053 
00054 // _________________ DEVICE MODE CONFIGURATION __________________________
00055 
00059 
00060 #define NB_ENDPOINTS          4  
00061 #define TX_EP               0x01
00062 #define RX_EP               0x02
00063 #define INT_EP              0x03
00064 
00065 #define USB_REMOTE_WAKEUP     DISABLED   
00066 
00067 #define VBUS_SENSING_IO       DISABLED   
00068 
00069 #define USB_RESET_CPU         DISABLED   
00070 
00071 #define Usb_unicode(a)        ((U16)(a))
00072 
00076    // write here the action to associate to each USB event
00077    // be carefull not to waste time in order not disturbing the functions
00078 #define Usb_sof_action()         sof_action();
00079 #define Usb_wake_up_action()
00080 #define Usb_resume_action()
00081 #define Usb_suspend_action()
00082 #define Usb_reset_action()
00083 #define Usb_vbus_on_action()
00084 #define Usb_vbus_off_action()
00085 #define Usb_set_configuration_action()
00087 
00088 extern void sof_action(void);
00089 extern void suspend_action(void);
00091 
00092 
00094 
00095 #endif // _CONF_USB_H_

Generated on Fri Jun 15 14:15:32 2007 for Atmel by  doxygen 1.5.1-p1