source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/arduino/avr/firmwares/wifishield/wifi_dnld/src/SOFTWARE_FRAMEWORK/ASM/trampoline.x @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 3 years ago

Adding new version

File size: 2.7 KB
Line 
1/* This file is part of the ATMEL AVR32-SoftwareFramework-AT32UC3A-1.4.0 Release */
2
3/*This file is prepared for Doxygen automatic documentation generation.*/
4/*! \file *********************************************************************
5 *
6 * \brief AVR32 UC3 ISP trampoline.
7 *
8 * In order to be able to program a project with both BatchISP and JTAGICE mkII
9 * without having to take the general-purpose fuses into consideration, add this
10 * file to the project and change the program entry point to _trampoline.
11 *
12 * The pre-programmed ISP will be erased if JTAGICE mkII is used.
13 *
14 * - Compiler:           GNU GCC for AVR32
15 * - Supported devices:  All AVR32UC devices can be used.
16 *
17 * \author               Atmel Corporation: http://www.atmel.com \n
18 *                       Support and FAQ: http://support.atmel.no/
19 *
20 ******************************************************************************/
21
22/* Copyright (C) 2006-2008, Atmel Corporation All rights reserved.
23 *
24 * Redistribution and use in source and binary forms, with or without
25 * modification, are permitted provided that the following conditions are met:
26 *
27 * 1. Redistributions of source code must retain the above copyright notice,
28 * this list of conditions and the following disclaimer.
29 *
30 * 2. Redistributions in binary form must reproduce the above copyright notice,
31 * this list of conditions and the following disclaimer in the documentation
32 * and/or other materials provided with the distribution.
33 *
34 * 3. The name of ATMEL may not be used to endorse or promote products derived
35 * from this software without specific prior written permission.
36 *
37 * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
38 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
39 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
40 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
41 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
42 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
45 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
46 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47 */
48
49
50#include "conf_isp.h"
51
52
53//! @{
54//! \verbatim
55
56
57  // This must be linked @ 0x80000000 if it is to be run upon reset.
58  .section  .reset, "ax", @progbits
59
60
61  .global _trampoline
62  .type _trampoline, @function
63_trampoline:
64  // Jump to program start.
65  rjmp    program_start
66
67  .org  PROGRAM_START_OFFSET
68program_start:
69  // Jump to the C runtime startup routine.
70  lda.w   pc, _stext
71
72
73//! \endverbatim
74//! @}
Note: See TracBrowser for help on using the repository browser.