Skip to content

Commit 757ff58

Browse files
committed
lpc55s66 bugfix boot helper using wrong irq type
1 parent 643b877 commit 757ff58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/chip/lpc55s66/startup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ void __attribute__((__constructor__(101))) __target_startup() {
4444
// are mapped to a function that halts the whole cpu.
4545
// this call does nothing when a flash handler is
4646
// configured
47-
klib::irq::boot_helper::init<target::irq>();
47+
klib::irq::boot_helper::init<target::irq0>();
4848

4949
// check if we can enable the systick. If we enable it
5050
// here when we have a flash irq handler we will cause
5151
// a hang in the default irq handler
52-
if constexpr (klib::irq::boot_helper::in_ram<target::irq>()) {
52+
if constexpr (klib::irq::boot_helper::in_ram<target::irq0>()) {
5353
// init the systick timer
54-
klib::io::systick<>::init<target::irq, true>();
54+
klib::io::systick<>::init<target::irq0, true>();
5555

5656
// enable the systick timer
5757
klib::io::systick<>::enable();

0 commit comments

Comments
 (0)