Moved and updated code for AT91SAM7S
This commit is contained in:
parent
1658d6b42c
commit
1f72d3ea32
32 changed files with 9799 additions and 0 deletions
21
cpu/arm/at91sam7s/startup-SAM7S.c
Normal file
21
cpu/arm/at91sam7s/startup-SAM7S.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
void
|
||||
Reset(void)
|
||||
{
|
||||
volatile int dummy =0;
|
||||
}
|
||||
|
||||
static void
|
||||
Vectors(void) __attribute__ ((naked, section(".vectrom")));
|
||||
|
||||
static void
|
||||
Vectors(void)
|
||||
{
|
||||
asm("ldr pc, %0\n"::"r" (Reset));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void foo_dummy()
|
||||
{
|
||||
Vectors();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue