rtimer implementation (not well tested)

sprintf that use strformat, so there's no need to pull in the newlib
implementation.
Build system improvements.
This commit is contained in:
ksb 2007-08-21 09:03:55 +00:00
parent 1ca82694f5
commit 792eae91c6
15 changed files with 294 additions and 67 deletions

View file

@ -3,7 +3,7 @@
#include <string.h>
#include <strformat.h>
StrFormatResult
static StrFormatResult
write_str(void *user_data, const char *data, unsigned int len)
{
dbg_send_bytes((unsigned char*)data, len);
@ -19,10 +19,12 @@ static StrFormatContext ctxt =
int
printf(const char *fmt, ...)
{
int res;
va_list ap;
va_start(ap, fmt);
return format_str_v(&ctxt, fmt, ap);
res = format_str_v(&ctxt, fmt, ap);
va_end(ap);
return res;
}