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