diff --git a/src/rp2_common/pico_platform_panic/panic.c b/src/rp2_common/pico_platform_panic/panic.c index d3eca23ee..06c063d2a 100644 --- a/src/rp2_common/pico_platform_panic/panic.c +++ b/src/rp2_common/pico_platform_panic/panic.c @@ -9,7 +9,6 @@ #include #include #include "pico.h" -#include "pico/platform/panic.h" #if LIB_PICO_PRINTF_PICO #include "pico/printf.h" @@ -38,8 +37,8 @@ void __attribute__((naked, noreturn)) __printflike(1, 0) panic(__unused const ch #if !PICO_PANIC_FUNCTION_EMPTY "jal " __XSTRING(PICO_PANIC_FUNCTION) "\n" #endif - "ebreak\n" - "1: j 1b\n" + "1: ebreak\n" + "j 1b\n" #else @@ -47,8 +46,8 @@ void __attribute__((naked, noreturn)) __printflike(1, 0) panic(__unused const ch #if !PICO_PANIC_FUNCTION_EMPTY "bl " __XSTRING(PICO_PANIC_FUNCTION) "\n" #endif - "bkpt #0\n" - "1: b 1b\n" // loop for ever as we are no return + "1: bkpt #0\n" + "b 1b\n" // loop for ever as we are no return #endif :