Skip to content

Commit

Permalink
chore: Make abort a weak definition (#283)
Browse files Browse the repository at this point in the history
Make abort a weak definition

Weak makes it possible to override which is useful for library integration in different contexts.
  • Loading branch information
oguzcanoguz authored May 6, 2024
1 parent c704496 commit 8702701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal_st/default_init/DefaultInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern "C"
hal::InterruptTable::Instance().Invoke(hal::ActiveInterrupt());
}

void abort()
[[gnu::weak]] void abort()
{
__BKPT();
HAL_NVIC_SystemReset();
Expand Down

0 comments on commit 8702701

Please sign in to comment.