Subversion Repositories LedShow

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 9
Line 1... Line 1...
1
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
1
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
2
;* File Name          : startup_stm32f103xg.s
2
;* File Name          : startup_stm32f103xg.s
3
;* Author             : MCD Application Team
3
;* Author             : MCD Application Team
4
;* Version            : V4.2.0
-
 
5
;* Date               : 31-March-2017
-
 
6
;* Description        : STM32F103xG Devices vector table for MDK-ARM toolchain. 
4
;* Description        : STM32F103xG Devices vector table for MDK-ARM toolchain. 
7
;*                      This module performs:
5
;*                      This module performs:
8
;*                      - Set the initial SP
6
;*                      - Set the initial SP
9
;*                      - Set the initial PC == Reset_Handler
7
;*                      - Set the initial PC == Reset_Handler
10
;*                      - Set the vector table entries with the exceptions ISR address
8
;*                      - Set the vector table entries with the exceptions ISR address
11
;*                      - Configure the clock system
9
;*                      - Configure the clock system
12
;*                      - Branches to __main in the C library (which eventually
10
;*                      - Branches to __main in the C library (which eventually
13
;*                        calls main()).
11
;*                        calls main()).
14
;*                      After Reset the Cortex-M3 processor is in Thread mode,
12
;*                      After Reset the Cortex-M3 processor is in Thread mode,
15
;*                      priority is Privileged, and the Stack is set to Main.
13
;*                      priority is Privileged, and the Stack is set to Main.
16
;********************************************************************************
14
;******************************************************************************
-
 
15
;* @attention
17
;*
16
;*
18
;* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
17
;* Copyright (c) 2017 STMicroelectronics.
-
 
18
;* All rights reserved.
19
;*
19
;*
20
;* Redistribution and use in source and binary forms, with or without modification,
20
;* This software component is licensed by ST under BSD 3-Clause license,
21
;* are permitted provided that the following conditions are met:
21
;* the "License"; You may not use this file except in compliance with the
22
;*   1. Redistributions of source code must retain the above copyright notice,
-
 
23
;*      this list of conditions and the following disclaimer.
-
 
24
;*   2. Redistributions in binary form must reproduce the above copyright notice,
-
 
25
;*      this list of conditions and the following disclaimer in the documentation
-
 
26
;*      and/or other materials provided with the distribution.
22
;* License. You may obtain a copy of the License at:
27
;*   3. Neither the name of STMicroelectronics nor the names of its contributors
-
 
28
;*      may be used to endorse or promote products derived from this software
23
;*                        opensource.org/licenses/BSD-3-Clause
29
;*      without specific prior written permission.
-
 
30
;*
24
;*
31
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-
 
32
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-
 
33
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-
 
34
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-
 
35
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-
 
36
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-
 
37
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-
 
38
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-
 
39
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-
 
40
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
41
; 
-
 
42
;*******************************************************************************
25
;******************************************************************************
43
 
26

44
; Amount of memory (in bytes) allocated for Stack
27
; Amount of memory (in bytes) allocated for Stack
45
; Tailor this value to your application needs
28
; Tailor this value to your application needs
46
; <h> Stack Configuration
29
; <h> Stack Configuration
47
;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
30
;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>