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