/*H**************************************************************************
* NAME: mode_task.h
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.6
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the mode definition
*****************************************************************************/
#ifndef _MODE_TASK_H_
#define _MODE_TASK_H_
/*_____ I N C L U D E S ____________________________________________________*/
/*_____ M A C R O S ________________________________________________________*/
#define SPLASH_TEMPO_INIT (Byte)(0)
#define SPLASH_TEMPO (Byte)(2500 / SCHEDULER_TICK)
/*----- Task states -----*/
/* !!! MODE_DOWNLOAD, MODE_SONG, MODE_VOICE, MODE_TOOL, MODE_IDLE
must stay grouped for mode_set_init function */
#define MODE_BOOT ((Byte)0)
#define MODE_SPLASH ((Byte)1)
#define MODE_DOWNLOAD ((Byte)2)
#define MODE_SONG ((Byte)3)
#define MODE_VOICE ((Byte)4)
#define MODE_TOOL ((Byte)5)
#define MODE_IDLE ((Byte)6)
/*_____ D E F I N I T I O N ________________________________________________*/
/*_____ D E C L A R A T I O N ______________________________________________*/
void mode_task (void);
void mode_task_init (void);
void mode_set_init (void);
void mode_set_download (void);
void mode_exit_download (void);
#endif /* _MODE_TASK_H_ */