ecf2d82159
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <zhangbingru@rt-thread.com> Co-authored-by: zhkag <zhkag@foxmail.com>
31 lines
403 B
C
31 lines
403 B
C
#ifndef SUNXI_HAL_DEBUG_H
|
|
#define SUNXI_HAL_DEBUG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#ifdef CONFIG_KERNEL_FREERTOS
|
|
|
|
#include <FreeRTOSConfig.h>
|
|
#define hal_soft_break soft_break
|
|
|
|
#else
|
|
|
|
#include <debug.h>
|
|
#define hal_soft_break software_break
|
|
|
|
#endif
|
|
|
|
#define hal_sys_abort() \
|
|
do { \
|
|
hal_soft_break(0); \
|
|
} while (0)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|