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