/*H**************************************************************************
* NAME: usb_task.h
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.8
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the USB task definition
*****************************************************************************/
#ifndef _USB_TASK_H_
#define _USB_TASK_H_
/*_____ I N C L U D E S ____________________________________________________*/
/*_____ M A C R O S ________________________________________________________*/
#define USB_WAIT_COMMAND 0 /* wait command state */
#define USB_MASS_STORAGE 1 /* mass storage state */
#define USB_WAIT_NB_RESUME (8) /* resume filter count */
/*_____ D E F I N I T I O N ________________________________________________*/
/*_____ D E C L A R A T I O N ______________________________________________*/
void usb_task_init (void);
void usb_task (void);
#define COMMAND_PASSED 0x00
#define COMMAND_FAILED 0x01
#define PHASE_ERROR 0x02
#endif /* _USB_TASK_H_ */