main.c

Go to the documentation of this file.
00001 /*This file is prepared for Doxygen automatic documentation generation.*/
00101 
00102 /* Copyright (c) 2009 Atmel Corporation. All rights reserved.
00103  *
00104  * Redistribution and use in source and binary forms, with or without
00105  * modification, are permitted provided that the following conditions are met:
00106  *
00107  * 1. Redistributions of source code must retain the above copyright notice,
00108  * this list of conditions and the following disclaimer.
00109  *
00110  * 2. Redistributions in binary form must reproduce the above copyright notice,
00111  * this list of conditions and the following disclaimer in the documentation
00112  * and/or other materials provided with the distribution.
00113  *
00114  * 3. The name of Atmel may not be used to endorse or promote products derived
00115  * from this software without specific prior written permission.
00116  *
00117  * 4. This software may only be redistributed and used in connection with an Atmel
00118  * AVR product.
00119  *
00120  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
00121  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00122  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND
00123  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00124  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00125  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00126  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00127  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00128  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00129  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00130  */
00131 
00132 //_____  I N C L U D E S ___________________________________________________
00133 
00134 #include "config.h"
00135 #include "modules/scheduler/scheduler.h"
00136 #include "lib_mcu/wdt/wdt_drv.h"
00137 #include "lib_mcu/power/power_drv.h"
00138 
00139 //_____ M A C R O S ________________________________________________________
00140 
00141 //_____ D E F I N I T I O N S ______________________________________________
00142 
00143 int main(void)
00144 {
00145    wdtdrv_disable();
00146    Clear_prescaler();
00147    scheduler();
00148    return 0;
00149 }
00150 
00154 #ifdef  __GNUC__
00155 // Locate low level init function before RAM init (init3 section)
00156 // and remove std prologue/epilogue
00157 char __low_level_init(void) __attribute__ ((section (".init3"),naked));
00158 #endif
00159 
00160 #ifdef __cplusplus
00161 extern "C" {
00162 #endif
00163 char __low_level_init()
00164 {
00165   Clear_prescaler();
00166   return 1;
00167 }
00168 #ifdef __cplusplus
00169 }
00170 #endif
00172 

Generated on Fri Sep 11 15:02:35 2009 for ATMEL by  doxygen 1.5.3