/*H**************************************************************************
* NAME: disp_task.h
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.7
*----------------------------------------------------------------------------
* PURPOSE:
* This file contains the display task definition
*****************************************************************************/
#ifndef _DISP_TASK_H_
#define _DISP_TASK_H_
/*_____ I N C L U D E S ____________________________________________________*/
/*_____ M A C R O S ________________________________________________________*/
#define DISP_TICK_500 500 / SCHEDULER_TICK
#define DISP_TICK_SEC 1000 / SCHEDULER_TICK
#define DISP_SEC_MIN 59
/*----- Clock task states -----*/
#define DISP_IDLE 0
#define DISP_INIT 1
#define DISP_TICK0 2
#define DISP_TICK1 3
#define DISP_SEC 4
#define DISP_MIN 5
#define DISP_MS_BUSY 6
/*_____ D E F I N I T I O N ________________________________________________*/
/*_____ D E C L A R A T I O N ______________________________________________*/
void disp_task_init (void);
void disp_task (void);
void disp_name_start (void);
void disp_name_stop (void);
void disp_clock_reset (void);
void disp_clock_start (void);
void disp_clock_stop (void);
void disp_end_of_play (void);
Byte disp_get_min (void);
Byte disp_get_sec (void);
void disp_save_time (void);
void disp_recall_time (void);
void disp_inc_time (Byte);
void disp_dec_time (Byte);
#endif /* _DISP_TASK_H_ */