Skip to content

Commit 7d6f15d

Browse files
robin-nitrokeydaringer
authored andcommitted
embedded: Add #[inline(never)] to lpc55 init methods
1 parent eb0ae22 commit 7d6f15d

File tree

1 file changed

+8
-0
lines changed
  • runners/embedded/src/soc_lpc55

1 file changed

+8
-0
lines changed

runners/embedded/src/soc_lpc55/init.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl Stage0 {
101101
.expect("Clock configuration failed")
102102
}
103103

104+
#[inline(never)]
104105
pub fn next(mut self, iocon: hal::Iocon<Unknown>, gpio: hal::Gpio<Unknown>) -> Stage1 {
105106
unsafe {
106107
super::types::DEVICE_UUID.copy_from_slice(&hal::uuid());
@@ -223,6 +224,7 @@ impl Stage1 {
223224
}
224225
}
225226

227+
#[inline(never)]
226228
pub fn next(
227229
mut self,
228230
adc: hal::Adc<Unknown>,
@@ -450,6 +452,7 @@ impl Stage2 {
450452
info_now!("hardware checks successful");
451453
}
452454

455+
#[inline(never)]
453456
pub fn next(
454457
mut self,
455458
flexcomm0: hal::peripherals::flexcomm::Flexcomm0<Unknown>,
@@ -495,6 +498,7 @@ pub struct Stage3 {
495498
}
496499

497500
impl Stage3 {
501+
#[inline(never)]
498502
pub fn next(
499503
mut self,
500504
rng: hal::peripherals::rng::Rng<Unknown>,
@@ -536,6 +540,7 @@ pub struct Stage4 {
536540
}
537541

538542
impl Stage4 {
543+
#[inline(never)]
539544
pub fn next(mut self) -> Stage5 {
540545
let syscon = &mut self.peripherals.syscon;
541546
let pmc = &mut self.peripherals.pmc;
@@ -649,6 +654,7 @@ pub struct Stage5 {
649654
}
650655

651656
impl Stage5 {
657+
#[inline(never)]
652658
pub fn next(mut self, rtc: hal::peripherals::rtc::Rtc<Unknown>) -> Stage6 {
653659
let syscon = &mut self.peripherals.syscon;
654660
let pmc = &mut self.peripherals.pmc;
@@ -710,6 +716,7 @@ impl Stage6 {
710716
}
711717
}
712718

719+
#[inline(never)]
713720
pub fn next(mut self) -> All {
714721
self.perform_data_migrations();
715722
let apps = crate::init_apps(&mut self.trussed, &self.store, self.clocks.is_nfc_passive);
@@ -752,6 +759,7 @@ pub struct All {
752759
pub clock_controller: Option<DynamicClockController>,
753760
}
754761

762+
#[inline(never)]
755763
pub fn start(syscon: hal::Syscon, pmc: hal::Pmc, anactrl: hal::Anactrl) -> Stage0 {
756764
let peripherals = Peripherals {
757765
syscon,

0 commit comments

Comments
 (0)