USB device operating mode configuration
[USB application configuration]


Modules

 USB device custom actions

Defines

#define USB_DEVICE_SN_USE   DISABLE
#define USE_DEVICE_SN_UNIQUE   DISABLE
#define NB_ENDPOINTS   2
#define EP_MOUSE_IN   1
#define USB_REMOTE_WAKEUP_FEATURE   ENABLE
#define VBUS_SENSING_IO   DISABLED
#define USB_RESET_CPU   DISABLED
#define Usb_unicode(a)   ((U16)(a))

Functions

void sof_action (void)
 This function increments the SOF counter each times.
void suspend_action (void)
 This function enables switches interruptions and enters the CPU in power down mode.

Define Documentation

#define USB_DEVICE_SN_USE   DISABLE

Definition at line 91 of file conf_usb.h.

#define USE_DEVICE_SN_UNIQUE   DISABLE

Definition at line 92 of file conf_usb.h.

#define NB_ENDPOINTS   2

Definition at line 94 of file conf_usb.h.

#define EP_MOUSE_IN   1

Definition at line 95 of file conf_usb.h.

Referenced by mouse_task(), usb_user_endpoint_init(), and usb_user_interface_reset().

#define USB_REMOTE_WAKEUP_FEATURE   ENABLE

Definition at line 97 of file conf_usb.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define VBUS_SENSING_IO   DISABLED

Definition at line 99 of file conf_usb.h.

#define USB_RESET_CPU   DISABLED

Definition at line 101 of file conf_usb.h.

#define Usb_unicode (  )     ((U16)(a))

Definition at line 103 of file conf_usb.h.


Function Documentation

void sof_action (  ) 

This function increments the SOF counter each times.

//! the USB Start Of Frame interrupt subroutine is executed (1ms)
//! Usefull to manage time delays
//! 

Definition at line 247 of file mouse_task.c.

00248 {
00249    g_u8_cpt_sof++;
00250 }

void suspend_action ( void   ) 

This function enables switches interruptions and enters the CPU in power down mode.

//! This function is executed when a suspend is received.
//! 

Definition at line 259 of file mouse_task.c.

00260 {
00261 #if (USB_REMOTE_WAKEUP_FEATURE == ENABLED)
00262    if (remote_wakeup_feature == ENABLED)
00263    {
00264       Switches_enable_it();
00265    }
00266    Led1_off();
00267    Enable_interrupt();
00268    Enter_power_down_mode();
00269    Led1_on();
00270 #endif 
00271 } 


Generated on Fri Sep 11 14:41:53 2009 for ATMEL by  doxygen 1.5.3