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