Rev 362 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 362 | Rev 398 | ||
|---|---|---|---|
| Line 11... | Line 11... | ||
| 11 | .macro vector_default number |
11 | .macro vector_default number |
| 12 | .if (. - __vector_defaults < _VECTORS_SIZE) |
12 | .if (. - __vector_defaults < _VECTORS_SIZE) |
| 13 | .weak __vector_default_\number |
13 | .weak __vector_default_\number |
| 14 | .set __vector_default_\number, . |
14 | .set __vector_default_\number, . |
| 15 | .word 0xffff |
15 | .word 0xffff |
| - | 16 | #if __AVR_MEGA__ |
|
| - | 17 | .word 0xffff ; interrupt vectors is 2 words in architectures with bigger flash |
|
| - | 18 | #endif |
|
| 16 | .endif |
19 | .endif |
| 17 | .endm |
20 | .endm |
| 18 | 21 | ||
| 19 | .section .boot_vectors,"ax",@progbits |
22 | .section .boot_vectors,"ax",@progbits |
| 20 | .global __boot_vectors |
23 | .global __boot_vectors |
| Line 83... | Line 86... | ||
| 83 | .global __vector_default |
86 | .global __vector_default |
| 84 | .set __vector_default, __boot_vectors |
87 | .set __vector_default, __boot_vectors |
| 85 | .func __vector_defaults |
88 | .func __vector_defaults |
| 86 | __vector_defaults: |
89 | __vector_defaults: |
| 87 | .word 0xffff ; Application reset vector |
90 | .word 0xffff ; Application reset vector |
| - | 91 | #if __AVR_MEGA__ |
|
| - | 92 | .word 0xffff ; reset vector is 2 words in architectures with bigger flash |
|
| - | 93 | #endif |
|
| 88 | vector_default 1 |
94 | vector_default 1 |
| 89 | vector_default 2 |
95 | vector_default 2 |
| 90 | vector_default 3 |
96 | vector_default 3 |
| 91 | vector_default 4 |
97 | vector_default 4 |
| 92 | vector_default 5 |
98 | vector_default 5 |