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