diff options
| author | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-12 10:01:48 +0000 |
| commit | 864bd1180237c952beefda21266c3f76f288b99a (patch) | |
| tree | 0d437761b4efee23c50b0a6e88e6a664fd55b2cf /src/debug.c | |
| parent | 8c3d1e5eaec88d77a2fe623e9d478b9542bad040 (diff) | |
Add reentrance check. Put kernel debug switch together.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1494 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c new file mode 100644 index 0000000000..3edbdf5dc7 --- /dev/null +++ b/src/debug.c @@ -0,0 +1,28 @@ +/* + * File : debug.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rt-thread.org/license/LICENSE + * + * Change Logs: + * Date Author Notes + * 2011-06 11 mbbill first version + */ + +#include <rtdef.h> +#include <rtdebug.h> + + +/** + * @addtogroup Kernel + */ + +/*@{*/ +#ifdef RT_DEBUG +rt_uint8_t rt_debug_reent_cnt = 0; +#endif + +/*@}*/ |
