1 #ifndef SUNXI_HAL_DEBUG_H 2 #define SUNXI_HAL_DEBUG_H 3 4 #ifdef __cplusplus 5 extern "C" 6 { 7 #endif 8 9 #ifdef CONFIG_KERNEL_FREERTOS 10 11 #include <FreeRTOSConfig.h> 12 #define hal_soft_break soft_break 13 14 #else 15 16 #include <debug.h> 17 #define hal_soft_break software_break 18 19 #endif 20 21 #define hal_sys_abort() \ 22 do { \ 23 hal_soft_break(0); \ 24 } while (0) 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif 31