This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 705454fd0c77d33d007320dde5ff8147f6b3134a
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Mon Dec 14 16:24:11 2020 +0100

    pic32: Fix build tu to missing hal_debug_break
    
    pic32 lacked hal_debug_break that was added some time ago and
    is used by assert.
---
 hw/mcu/microchip/pic32mx470f512h/include/mcu/pic32.h   | 6 ++++++
 hw/mcu/microchip/pic32mz2048efg100/include/mcu/pic32.h | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/hw/mcu/microchip/pic32mx470f512h/include/mcu/pic32.h 
b/hw/mcu/microchip/pic32mx470f512h/include/mcu/pic32.h
index 6dccd82..bb87c24 100644
--- a/hw/mcu/microchip/pic32mx470f512h/include/mcu/pic32.h
+++ b/hw/mcu/microchip/pic32mx470f512h/include/mcu/pic32.h
@@ -22,4 +22,10 @@
 
 #define OS_TICKS_PER_SEC    (1000)
 
+static inline void
+hal_debug_break(void)
+{
+    __asm__ volatile (" sdbbp 0");
+}
+
 #endif /* __MCU_PIC32_H__ */
diff --git a/hw/mcu/microchip/pic32mz2048efg100/include/mcu/pic32.h 
b/hw/mcu/microchip/pic32mz2048efg100/include/mcu/pic32.h
index 6dccd82..bb87c24 100644
--- a/hw/mcu/microchip/pic32mz2048efg100/include/mcu/pic32.h
+++ b/hw/mcu/microchip/pic32mz2048efg100/include/mcu/pic32.h
@@ -22,4 +22,10 @@
 
 #define OS_TICKS_PER_SEC    (1000)
 
+static inline void
+hal_debug_break(void)
+{
+    __asm__ volatile (" sdbbp 0");
+}
+
 #endif /* __MCU_PIC32_H__ */

Reply via email to