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 #define  USB_DEVICE_FEATURE         ENABLED
00024 
00025 
00026    // _________________ USB REGULATOR CONFIGURATION _______________________
00027    //
00030 
00035 #ifndef USE_USB_PADS_REGULATOR
00036 //   #define USE_USB_PADS_REGULATOR   ENABLE      // Possible values ENABLE or DISABLE
00037    #define USE_USB_PADS_REGULATOR   DISABLE      // Possible values ENABLE or DISABLE
00038 #endif
00040 
00041 
00042 
00043 // _________________ DEVICE MODE CONFIGURATION __________________________
00044 
00048 
00049 #define NB_ENDPOINTS          4  
00050 #define EP_MOUSE_IN           1  
00051 #define EP_MS_IN              2
00052 #define EP_MS_OUT             3
00053 
00054 #define USB_REMOTE_WAKEUP     DISABLED   
00055 
00056 #define VBUS_SENSING_IO       DISABLED   
00057 
00058 #define USB_RESET_CPU         DISABLED   
00059 
00060 #define Usb_unicode(a)        ((U16)(a))
00061 
00065    // write here the action to associate to each USB event
00066    // be carefull not to waste time in order not disturbing the functions
00067 #define Usb_sof_action()         sof_action();
00068 #define Usb_resume_action()
00069 #define Usb_suspend_action()
00070 #define Usb_wake_up_action()
00071 #define Usb_reset_action()
00072 #define Usb_vbus_on_action()
00073 #define Usb_vbus_off_action()
00074 #define Usb_set_configuration_action()
00076 
00077 extern void sof_action(void);
00078 
00079 // write here the action to associate to each SCSI event
00080     // be carefull not to waste time in order not disturbing the functions
00081 #define Scsi_start_read_action()    Led1_on()
00082 #define Scsi_stop_read_action()     Led1_off()
00083 #define Scsi_start_write_action()   Led0_on()
00084 #define Scsi_stop_write_action()    Led0_off()
00086 
00088 
00089 #endif // _CONF_USB_H_

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