37 lines
487 B
C
37 lines
487 B
C
#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
|