main.c

Go to the documentation of this file.
00001 /*This file has been prepared for Doxygen automatic documentation generation.*/
00068 
00069 /* Copyright (c) 2007, Atmel Corporation All rights reserved.
00070  *
00071  * Redistribution and use in source and binary forms, with or without
00072  * modification, are permitted provided that the following conditions are met:
00073  *
00074  * 1. Redistributions of source code must retain the above copyright notice,
00075  * this list of conditions and the following disclaimer.
00076  *
00077  * 2. Redistributions in binary form must reproduce the above copyright notice,
00078  * this list of conditions and the following disclaimer in the documentation
00079  * and/or other materials provided with the distribution.
00080  *
00081  * 3. The name of ATMEL may not be used to endorse or promote products derived
00082  * from this software without specific prior written permission.
00083  *
00084  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00085  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00086  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00087  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00088  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00089  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00090  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00091  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00092  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00093  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00094  */
00095  
00096 //_____  I N C L U D E S ___________________________________________________
00097 
00098 #include "config.h"
00099 #include "modules/scheduler/scheduler.h"
00100 #include "lib_mcu/wdt/wdt_drv.h"
00101 #include "lib_mcu/power/power_drv.h"
00102 #include "lib_mcu/usb/usb_drv.h"
00103 
00104 
00105 
00106 
00107 //_____ M A C R O S ________________________________________________________
00108 
00109 //_____ D E F I N I T I O N S ______________________________________________
00110 
00111 int main(void)
00112 {
00113 
00114   Usb_enable_regulator();
00115 
00116 #ifndef  __GNUC__
00117    Wdt_off();
00118 #else
00119    wdt_reset();
00120    Wdt_clear_flag();
00121    Wdt_change_enable();
00122    Wdt_stop();
00123 #endif
00124    Clear_prescaler();
00125    scheduler();
00126    return 1;
00127 }
00128 

Generated on Mon May 5 15:57:54 2008 for ATMEL by  doxygen 1.5.1-p1