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