nrf52dk: platform support

This commit is contained in:
Wojciech Bober 2016-01-09 14:44:39 +01:00
parent 20f9515ed1
commit d39ad95db5
22 changed files with 4173 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#include <stdarg.h>
#include "segger-rtt.h"
int SEGGER_RTT_vprintf(unsigned BufferIndex, const char * sFormat, va_list * pParamList);
int
putchar(int c)
{
SEGGER_RTT_Write(0, &c, 1);
return c;
}
int
printf(const char *fmt, ...)
{
int res;
va_list ap;
va_start(ap, fmt);
res = SEGGER_RTT_vprintf(0, fmt, &ap);
va_end(ap);
return res;
}