/*C**************************************************************************
* NAME: main.c
*----------------------------------------------------------------------------
* Copyright (c) 2003 Atmel.
*----------------------------------------------------------------------------
* RELEASE: snd1c-refd-nf-4_0_3
* REVISION: 1.6
*----------------------------------------------------------------------------
* PURPOSE:
* This is the demonstration software for T8xC51SND1
*****************************************************************************/
/*_____ I N C L U D E S ____________________________________________________*/
#include "config.h" /* system definition */
#include "lib_mcu\c51_drv.h" /* c51 driver definition */
#include "scheduler.h" /* scheduler definition */
/*_____ M A C R O S ________________________________________________________*/
/*_____ D E F I N I T I O N ________________________________________________*/
Byte code __FIRMWARE_VERSION_STRING[]="@(#) Firmware snd1c-refd-nf-4_0_3 - Atmel Chejudo Player Reference Design\15\12\0$Id: main.c,v 1.6 2002/12/20 12:51:12 ffosse Exp $";
/*_____ D E C L A R A T I O N ______________________________________________*/
extern void in_system_prog (void);
static void main (void);
/*F**************************************************************************
* NAME: main
*----------------------------------------------------------------------------
* PARAMS:
*
* return:
*----------------------------------------------------------------------------
* PURPOSE:
* Main user routine
*----------------------------------------------------------------------------
* EXAMPLE:
*----------------------------------------------------------------------------
* NOTE:
*----------------------------------------------------------------------------
* REQUIREMENTS:
*****************************************************************************/
void main (void)
{
in_system_prog(); /* check ISP execution request */
Enable_interrupt(); /* global enable */
#ifdef X2_MODE
Set_x2_mode();
#endif
sch_scheduler_init();
sch_scheduler(); /* endless scheduler execution */
}