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