Skip to content

Commit 6d566b2

Browse files
authored
Merge pull request #600 from eulerdisk/fix_pre_init_example
Fix __pre_init example
2 parents c2dd99a + d54b6f0 commit 6d566b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cortex-m-rt/examples/pre_init.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ use rt::entry;
1313
// For example, it can be used to disable the watchdog.
1414
core::arch::global_asm! {
1515
r#"
16+
.global __pre_init
17+
.type __pre_init,%function
18+
.thumb_func
1619
__pre_init:
1720
// Do what you need to do before RAM is initialized.
1821
bx lr

0 commit comments

Comments
 (0)