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