Skip to content

Commit e73bfd4

Browse files
committed
Mark pre_init as deprecated
1 parent c3d664b commit e73bfd4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cortex-m-rt/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Mark `pre_init` as deprecated
1011
- Add `set_msplim` feature to conditionally set the MSPLIM register at device
1112
reset ([#580]).
1213

cortex-m-rt/macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream {
628628
}
629629

630630
#[proc_macro_attribute]
631+
#[deprecated(note = "Use core::arch::global_asm! to define the __pre_init function instead")]
631632
pub fn pre_init(args: TokenStream, input: TokenStream) -> TokenStream {
632633
let f = parse_macro_input!(input as ItemFn);
633634

0 commit comments

Comments
 (0)