main.c

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

Generated on Mon Sep 14 13:24:11 2009 for ATMEL by  doxygen 1.5.3