sdk-hwV1.3/lichee/rtos-hal/include/osal/hal_debug.h

37 lines
487 B
C
Raw Normal View History

2024-05-07 10:09:20 +00:00
#ifndef SUNXI_HAL_DEBUG_H
#define SUNXI_HAL_DEBUG_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "barrier.h"
#if defined(CONFIG_KERNEL_FREERTOS)
#include <FreeRTOSConfig.h>
#define hal_soft_break soft_break
#elif defined(CONFIG_OS_MELIS)
#include <debug.h>
#define hal_soft_break software_break
#else
#define hal_soft_break
#endif
#define hal_sys_abort() \
do { \
hal_soft_break(0); \
} while (0)
#ifdef __cplusplus
}
#endif
#endif