summaryrefslogtreecommitdiff
path: root/ucoo/arch/arch.stm32.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/arch/arch.stm32.cc')
-rw-r--r--ucoo/arch/arch.stm32.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ucoo/arch/arch.stm32.cc b/ucoo/arch/arch.stm32.cc
index 27cd721..aa07575 100644
--- a/ucoo/arch/arch.stm32.cc
+++ b/ucoo/arch/arch.stm32.cc
@@ -43,6 +43,16 @@ halt ()
}
void
+halt (const char *msg)
+{
+ volatile const char *halt_message = msg;
+ (void) halt_message;
+ asm volatile ("bkpt");
+ while (1)
+ ;
+}
+
+void
halt_perror ()
{
halt ();