From 8702701c1babe7b0112ac5c4a5879f2ea03a7224 Mon Sep 17 00:00:00 2001 From: oguzcan oguz Date: Mon, 6 May 2024 16:29:03 +0200 Subject: [PATCH] chore: Make abort a weak definition (#283) Make abort a weak definition Weak makes it possible to override which is useful for library integration in different contexts. --- hal_st/default_init/DefaultInit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal_st/default_init/DefaultInit.cpp b/hal_st/default_init/DefaultInit.cpp index 1e8db6f1..15c1bf9b 100644 --- a/hal_st/default_init/DefaultInit.cpp +++ b/hal_st/default_init/DefaultInit.cpp @@ -37,7 +37,7 @@ extern "C" hal::InterruptTable::Instance().Invoke(hal::ActiveInterrupt()); } - void abort() + [[gnu::weak]] void abort() { __BKPT(); HAL_NVIC_SystemReset();