projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the bug related to the empty version list
[bertos.git]
/
bertos
/
drv
/
kdebug.c
diff --git
a/bertos/drv/kdebug.c
b/bertos/drv/kdebug.c
index 37192dd5b58e5eb57df1a163186654b86cd9ea4c..7e5eaaa7befabfc2ccf11db90b4f7eccc752e392 100644
(file)
--- a/
bertos/drv/kdebug.c
+++ b/
bertos/drv/kdebug.c
@@
-27,14
+27,13
@@
* the GNU General Public License.
*
* Copyright 2003, 2004, 2005, 2006, 2007 Develer S.r.l. (http://www.develer.com/)
* the GNU General Public License.
*
* Copyright 2003, 2004, 2005, 2006, 2007 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2000, 2001, 2002 Bernardo Innocenti <bernie@codewiz.org>
- *
+ * Copyright 2000, 2001, 2002 Bernie Innocenti <bernie@codewiz.org>
* -->
*
* \brief General pourpose debug support for embedded systems (implementation).
*
* \version $Id$
* -->
*
* \brief General pourpose debug support for embedded systems (implementation).
*
* \version $Id$
- * \author Bern
ardo Innocenti <bernie@develer.com
>
+ * \author Bern
ie Innocenti <bernie@codewiz.org
>
* \author Stefano Fedrigo <aleph@develer.com>
*/
* \author Stefano Fedrigo <aleph@develer.com>
*/
@@
-43,12
+42,11
@@
#include <cfg/debug.h>
#include <cfg/os.h>
#include <cfg/debug.h>
#include <cfg/os.h>
-#include <cpu/irq.h>
#include <cpu/attr.h>
#include <cpu/types.h>
#include <mware/formatwr.h> /* for _formatted_write() */
#include <cpu/attr.h>
#include <cpu/types.h>
#include <mware/formatwr.h> /* for _formatted_write() */
-#include <
mware
/pgm.h>
+#include <
cpu
/pgm.h>
#ifdef _DEBUG
#ifdef _DEBUG
@@
-58,9
+56,10
@@
#if OS_HOSTED
#if OS_HOSTED
- #include <stdio.h>
+ #include <unistd.h> // write()
+
#define KDBG_WAIT_READY() do { /*nop*/ } while(0)
#define KDBG_WAIT_READY() do { /*nop*/ } while(0)
- #define KDBG_WRITE_CHAR(c)
putc((c), stderr
)
+ #define KDBG_WRITE_CHAR(c)
do { char __c = (c); write(STDERR_FILENO, &__c, sizeof(__c)); } while(0
)
#define KDBG_MASK_IRQ(old) do { (void)(old); } while(0)
#define KDBG_RESTORE_IRQ(old) do { /*nop*/ } while(0)
typedef char kdbg_irqsave_t; /* unused */
#define KDBG_MASK_IRQ(old) do { (void)(old); } while(0)
#define KDBG_RESTORE_IRQ(old) do { /*nop*/ } while(0)
typedef char kdbg_irqsave_t; /* unused */