uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
BoardConsole.c
Go to the documentation of this file.
1
#include <
stdio.h
>
2
#include <
malloc.h
>
3
#include <stdarg.h>
4
#include "
BoardConsole.h
"
5
#include <
debug_frmwrk.h
>
6
7
void
BoardConsoleInit
() {
8
debug_frmwrk_init
();
9
}
10
11
void
BoardConsolePuts
(
const
char
* str) {
12
_DBG_
(str);
13
}
14
15
void
BoardConsolePutc
(
int
c) {
16
_DBC
(c);
17
}
18
19
void
BoardConsolePrintf
(
const
char
* fmt, ...) {
20
va_list ap;
21
va_start(ap, fmt);
22
BoardConsoleVPrintf
(fmt, ap);
23
va_end(ap);
24
}
25
26
static
void
xprintfCallback(
const
char
* str,
int
strsize,
void
* opaque0) {
27
while
(strsize--)
28
BoardConsolePutc
(*str++);
29
}
30
31
void
BoardConsoleVPrintf
(
const
char
* fmt, va_list ap) {
32
vxprintf
(xprintfCallback,
NULL
, fmt, ap);
33
}
arch
arm
lpc17xx
mbed
BoardConsole.c
Generated on Fri Nov 15 2013 05:00:16 for uc-sdk by
1.8.4