- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# main.c

Go to the documentation of this file.

    00001 /*This file has been prepared for Doxygen automatic documentation generation.*/
    00176
    00177 /* Copyright (c) 2007, Atmel Corporation All rights reserved.
    00178  *
    00179  * Redistribution and use in source and binary forms, with or without
    00180  * modification, are permitted provided that the following conditions are met:
    00181  *
    00182  * 1. Redistributions of source code must retain the above copyright notice,
    00183  * this list of conditions and the following disclaimer.
    00184  *
    00185  * 2. Redistributions in binary form must reproduce the above copyright notice,
    00186  * this list of conditions and the following disclaimer in the documentation
    00187  * and/or other materials provided with the distribution.
    00188  *
    00189  * 3. The name of ATMEL may not be used to endorse or promote products derived
    00190  * from this software without specific prior written permission.
    00191  *
    00192  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
    00193  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00194  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY AND
    00195  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
    00196  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    00197  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    00198  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    00199  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    00200  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    00201  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00202  */
    00203
    00204 //_____  I N C L U D E S ___________________________________________________
    00205
    00206 #include "config.h"
    00207 #include "modules/scheduler/scheduler.h"
    00208 #include "lib_mcu/wdt/wdt_drv.h"
    00209 #include "lib_mcu/power/power_drv.h"
    00210
    00211 //_____ M A C R O S ________________________________________________________
    00212
    00213 //_____ D E F I N I T I O N S ______________________________________________
    00214
    00215 int main(void)
    00216 {
    00217    wdtdrv_disable();
    00218    Clear_prescaler();
    00219    scheduler();
    00220    return 0;
    00221 }
    00222
    00226 #ifdef  __GNUC__
    00227 // Locate low level init function before RAM init (init3 section)
    00228 // and remove std prologue/epilogue
    00229 char __low_level_init(void) __attribute__ ((section (".init3"),naked));
    00230 #endif
    00231
    00232 #ifdef __cplusplus
    00233 extern "C" {
    00234 #endif
    00235 char __low_level_init()
    00236 {
    00237   Clear_prescaler();
    00238   return 1;
    00239 }
    00240 #ifdef __cplusplus
    00241 }
    00242 #endif
    00244