summaryrefslogtreecommitdiff
path: root/bsp/allwinner/libraries/sunxi-hal/include/osal/hal_debug.h
blob: 2a168d20be38d93078f1324204cd6cdbda8de9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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