main.c

Go to the documentation of this file.
00001 /*This file is prepared for Doxygen automatic documentation generation.*/
00235 
00236 /* Copyright (c) 2009 Atmel Corporation. All rights reserved.
00237  *
00238  * Redistribution and use in source and binary forms, with or without
00239  * modification, are permitted provided that the following conditions are met:
00240  *
00241  * 1. Redistributions of source code must retain the above copyright notice,
00242  * this list of conditions and the following disclaimer.
00243  *
00244  * 2. Redistributions in binary form must reproduce the above copyright notice,
00245  * this list of conditions and the following disclaimer in the documentation
00246  * and/or other materials provided with the distribution.
00247  *
00248  * 3. The name of Atmel may not be used to endorse or promote products derived
00249  * from this software without specific prior written permission.
00250  *
00251  * 4. This software may only be redistributed and used in connection with an Atmel
00252  * AVR product.
00253  *
00254  * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
00255  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00256  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND
00257  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00258  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00259  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00260  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00261  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00262  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00263  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00264  */
00265 
00266 //_____  I N C L U D E S ___________________________________________________
00267 
00268 #include "config.h"
00269 #include "modules/scheduler/scheduler.h"
00270 #include "lib_mcu/wdt/wdt_drv.h"
00271 #include "lib_mcu/power/power_drv.h"
00272 
00273 //_____ M A C R O S ________________________________________________________
00274 
00275 //_____ D E F I N I T I O N S ______________________________________________
00276 
00277 int main(void)
00278 {   
00279    wdtdrv_disable();
00280    Clear_prescaler();
00281    scheduler();
00282    return 0;
00283 }
00284 
00288 #ifdef  __GNUC__
00289 // Locate low level init function before RAM init (init3 section)
00290 // and remove std prologue/epilogue
00291 char __low_level_init(void) __attribute__ ((section (".init3"),naked));
00292 #endif
00293 
00294 #ifdef __cplusplus
00295 extern "C" {
00296 #endif
00297 char __low_level_init()
00298 {
00299   Clear_prescaler();
00300   return 1;
00301 }
00302 #ifdef __cplusplus
00303 }
00304 #endif
00306 

Generated on Wed Sep 23 09:37:10 2009 for ATMEL by  doxygen 1.5.3