[misc] convert various low level printfs to kprintf

This commit is contained in:
Travis Geiselbrecht
2013-08-25 19:03:34 -07:00
parent e3b433520d
commit f80af289a7
3 changed files with 6 additions and 5 deletions

View File

@@ -23,6 +23,7 @@
#include <stdio.h>
#include <app.h>
#include <kernel/thread.h>
#include <kernel/debug.h>
extern const struct app_descriptor __apps_start;
extern const struct app_descriptor __apps_end;

View File

@@ -82,7 +82,7 @@ void sam_debug_init(void)
void platform_dputc(char c)
{
if (c == '\n') {
_dputc('\r');
platform_dputc('\r');
}
while (!uart_is_tx_ready(UART))

View File

@@ -26,9 +26,10 @@
#include <stdio.h>
#include <lib/cbuf.h>
#include <kernel/thread.h>
#include <kernel/debug.h>
#include <platform/debug.h>
#include <arch/ops.h>
#include <target/debugconfig.h>
#include <arch/ops.h>
#include <arch/arm/cm.h>
#include "ti_driverlib.h"
@@ -98,13 +99,12 @@ void stellaris_debug_init(void)
UARTIntEnable(DEBUG_UART, UART_INT_RX | UART_INT_RT);
NVIC_EnableIRQ(INT_UART0 - 16);
}
void platform_dputc(char c)
{
if (c == '\n') {
_dputc('\r');
UARTCharPut(DEBUG_UART, '\r');
}
UARTCharPut(DEBUG_UART, c);
@@ -117,7 +117,7 @@ int platform_dgetc(char *c, bool wait)
void platform_halt(void)
{
dprintf(ALWAYS, "HALT: spinning forever...\n");
kprintf("HALT: spinning forever...\n");
for (;;);
}