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 EP_MOUSE_IN   1
#define USB_REMOTE_WAKEUP_FEATURE   ENABLE
#define USB_LOW_SPEED_DEVICE   DISABLE
#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 90 of file conf_usb.h.

#define USE_DEVICE_SN_UNIQUE   DISABLE

Definition at line 91 of file conf_usb.h.

#define EP_MOUSE_IN   1

Definition at line 93 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 95 of file conf_usb.h.

Referenced by usb_clear_feature(), and usb_set_feature().

#define USB_LOW_SPEED_DEVICE   DISABLE

Definition at line 97 of file conf_usb.h.

#define USB_RESET_CPU   DISABLED

Definition at line 99 of file conf_usb.h.

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

Definition at line 101 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 246 of file mouse_task.c.

00247 {
00248    g_u8_cpt_sof++;
00249 }

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 258 of file mouse_task.c.

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


Generated on Fri Sep 11 15:04:26 2009 for ATMEL by  doxygen 1.5.3