Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gene
xmc4500-relax-linux
Commits
07277700
Commit
07277700
authored
Aug 24, 2016
by
Christian Eichler
Browse files
Make LED 1.1 blink on BusFaults
parent
522008aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.c
View file @
07277700
...
...
@@ -57,7 +57,16 @@ IHANDLER void HardFault_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER
void
NMI_Handler
()
{
P1_1_toggle
();
while
(
1
)
{}
}
IHANDLER
void
MemManage_Handler
()
{
P1_1_toggle
();
while
(
1
)
{}
}
IHANDLER
void
UsageFault_Handler
()
{
P1_1_toggle
();
while
(
1
)
{}
}
IHANDLER
void
BusFault_Handler
()
{
P1_1_toggle
();
while
(
1
)
{}
}
IHANDLER
void
BusFault_Handler
()
{
__asm
volatile
(
"ldr sp,=__initial_sp; isb"
);
P1_0_reset
();
while
(
true
)
{
P1_1_toggle
();
for
(
volatile
int
i
=
0
;
i
<
5000000
;
++
i
)
{}
}
}
static
void
uint64_to_string
(
char
*
buf
,
uint64_t
value
)
{
int
digits
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment