]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.s
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / cmsis / TARGET_NXP / TARGET_LPC11XX_11CXX / TOOLCHAIN_GCC_CS / startup_LPC11xx.s
1 .equ Stack_Size, 0x80
2 .section ".stack", "w"
3 .align 3
4 .globl __cs3_stack_mem
5 .globl __cs3_stack_size
6 __cs3_stack_mem:
7 .if Stack_Size
8 .space Stack_Size
9 .endif
10 .size __cs3_stack_mem, . - __cs3_stack_mem
11 .set __cs3_stack_size, . - __cs3_stack_mem
12
13 .equ Heap_Size, 0x80
14 .section ".heap", "w"
15 .align 3
16 .globl __cs3_heap_start
17 .globl __cs3_heap_end
18 __cs3_heap_start:
19 .if Heap_Size
20 .space Heap_Size
21 .endif
22 __cs3_heap_end:
23
24 .section ".cs3.interrupt_vector"
25 .globl __cs3_interrupt_vector_cortex_m
26 .type __cs3_interrupt_vector_cortex_m, %object
27
28 __cs3_interrupt_vector_cortex_m:
29 .long __cs3_stack
30 .long __cs3_reset
31 .long NMI_Handler
32 .long HardFault_Handler
33 .long 0
34 .long 0
35 .long 0
36 .long 0
37 .long 0
38 .long 0
39 .long 0
40 .long SVC_Handler
41 .long 0
42 .long 0
43 .long PendSV_Handler
44 .long SysTick_Handler
45
46 .long DEF_IRQHandler
47
48 .size __cs3_interrupt_vector_cortex_m, . - __cs3_interrupt_vector_cortex_m
49
50 .thumb
51
52 .section .cs3.reset,"x",%progbits
53 .thumb_func
54 .globl __cs3_reset_cortex_m
55 .type __cs3_reset_cortex_m, %function
56 __cs3_reset_cortex_m:
57 .fnstart
58 LDR R0, =SystemInit
59 BLX R0
60 LDR R0,=__cs3_start_c
61 BX R0
62 .pool
63 .cantunwind
64 .fnend
65 .size __cs3_reset_cortex_m,.-__cs3_reset_cortex_m
66
67 .section ".text"
68
69 .weak NMI_Handler
70 .type NMI_Handler, %function
71 NMI_Handler:
72 B .
73 .size NMI_Handler, . - NMI_Handler
74
75 .weak HardFault_Handler
76 .type HardFault_Handler, %function
77 HardFault_Handler:
78 B .
79 .size HardFault_Handler, . - HardFault_Handler
80
81 .weak SVC_Handler
82 .type SVC_Handler, %function
83 SVC_Handler:
84 B .
85 .size SVC_Handler, . - SVC_Handler
86
87 .weak PendSV_Handler
88 .type PendSV_Handler, %function
89 PendSV_Handler:
90 B .
91 .size PendSV_Handler, . - PendSV_Handler
92
93 .weak SysTick_Handler
94 .type SysTick_Handler, %function
95 SysTick_Handler:
96 B .
97 .size SysTick_Handler, . - SysTick_Handler
98
99 .globl Default_Handler
100 .type Default_Handler, %function
101 Default_Handler:
102 B .
103 .size Default_Handler, . - Default_Handler
104
105 .macro IRQ handler
106 .weak \handler
107 .set \handler, Default_Handler
108 .endm
109
110 IRQ DEF_IRQHandler
111
112 .end
Imprint / Impressum