00001 /*This file is prepared for Doxygen automatic documentation generation.*/ 00020 /* Copyright (c) 2009 Atmel Corporation. All rights reserved. 00021 * 00022 * Redistribution and use in source and binary forms, with or without 00023 * modification, are permitted provided that the following conditions are met: 00024 * 00025 * 1. Redistributions of source code must retain the above copyright notice, this 00026 * list of conditions and the following disclaimer. 00027 * 00028 * 2. Redistributions in binary form must reproduce the above copyright notice, 00029 * this list of conditions and the following disclaimer in the documentation 00030 * and/or other materials provided with the distribution. 00031 * 00032 * 3. The name of Atmel may not be used to endorse or promote products derived 00033 * from this software without specific prior written permission. 00034 * 00035 * 4. This software may only be redistributed and used in connection with an Atmel 00036 * AVR product. 00037 * 00038 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 00039 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00040 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 00041 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 00042 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00043 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00044 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00045 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00046 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00047 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 00048 * 00049 */ 00050 00051 #include "../CONF/conf_isp.h" 00052 00053 00056 00057 00058 // This must be linked @ 0x80000000 if it is to be run upon reset. 00059 .section .reset, "ax", @progbits 00060 00061 00062 .global _trampoline 00063 .type _trampoline, @function 00064 _trampoline: 00065 // Jump to program start. 00066 rjmp program_start 00067 00068 .org PROGRAM_START_OFFSET 00069 program_start: 00070 // Jump to the C runtime startup routine. 00071 lda.w pc, _stext 00072 00073