Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
d73e6872
Commit
d73e6872
authored
8 years ago
by
Joakim Nohlgård
Browse files
Options
Downloads
Patches
Plain Diff
kinetis: Refactor interrupt vector definition
... to match the vector definition in other Cortex-M platforms
parent
4dc2028c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cpu/k60/vectors.c
+1
-2
1 addition, 2 deletions
cpu/k60/vectors.c
cpu/k64f/vectors.c
+1
-2
1 addition, 2 deletions
cpu/k64f/vectors.c
cpu/kinetis_common/ldscripts/kinetis.ld
+5
-5
5 additions, 5 deletions
cpu/kinetis_common/ldscripts/kinetis.ld
cpu/kw2x/vectors.c
+1
-2
1 addition, 2 deletions
cpu/kw2x/vectors.c
with
8 additions
and
11 deletions
cpu/k60/vectors.c
+
1
−
2
View file @
d73e6872
...
...
@@ -157,8 +157,7 @@ WEAK_DEFAULT void isr_software(void);
/**
* @brief Interrupt vector definition
*/
__attribute__
((
used
,
section
(
".vector_table"
)))
const
void
*
interrupt_vector
[]
=
{
ISR_VECTORS
const
void
*
interrupt_vector
[]
=
{
/* Stack pointer */
(
void
*
)(
&
_estack
),
/* pointer to the top of the empty stack */
/* Cortex-M4 handlers */
...
...
This diff is collapsed.
Click to expand it.
cpu/k64f/vectors.c
+
1
−
2
View file @
d73e6872
...
...
@@ -132,8 +132,7 @@ WEAK_DEFAULT void isr_enet_receive(void);
WEAK_DEFAULT
void
isr_enet_error
(
void
);
/* interrupt vector table */
__attribute__
((
used
,
section
(
".vector_table"
)))
const
void
*
interrupt_vector
[]
=
{
ISR_VECTORS
const
void
*
interrupt_vector
[]
=
{
/* Stack pointer */
(
void
*
)(
&
_estack
),
/* pointer to the top of the empty stack */
/* Cortex-M4 handlers */
...
...
This diff is collapsed.
Click to expand it.
cpu/kinetis_common/ldscripts/kinetis.ld
+
5
−
5
View file @
d73e6872
...
...
@@ -23,14 +23,14 @@
SECTIONS
{
/* Interrupt vectors 0x00-0x3ff. */
.vector
_table
:
.vector
s
:
{
_isr_vectors = .;
KEEP(*(.vector
_table
))
KEEP(*(.vector
s .vectors.*
))
} > vectors
ASSERT (SIZEOF(.vector
_table
) == 0x400, "Interrupt vector table of invalid size.")
ASSERT (ADDR(.vector
_table
) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (LOADADDR(.vector
_table
) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (SIZEOF(.vector
s
) == 0x400, "Interrupt vector table of invalid size.")
ASSERT (ADDR(.vector
s
) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
ASSERT (LOADADDR(.vector
s
) == 0x00000000, "Interrupt vector table at invalid location (linker-script error?)")
/* Flash configuration field, very important in order to not accidentally lock the device */
/* Flash configuration field 0x400-0x40f. */
...
...
This diff is collapsed.
Click to expand it.
cpu/kw2x/vectors.c
+
1
−
2
View file @
d73e6872
...
...
@@ -108,8 +108,7 @@ WEAK_DEFAULT void isr_porte(void);
WEAK_DEFAULT
void
isr_swi
(
void
);
/* interrupt vector table */
__attribute__
((
used
,
section
(
".vector_table"
)))
const
void
*
interrupt_vector
[]
=
{
ISR_VECTORS
const
void
*
interrupt_vector
[]
=
{
/* Stack pointer */
(
void
*
)(
&
_estack
),
/* pointer to the top of the empty stack */
/* Cortex-M4 handlers */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment