From bd5a138629771ae174927791fcc7515232a0e4fa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Aug 2012 11:29:13 +0200 Subject: libcsupport: Add and use rtems_putc() This reduces code size and provides a function similar to fputc(). --- cpukit/libcsupport/src/rtems_putc.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cpukit/libcsupport/src/rtems_putc.c (limited to 'cpukit/libcsupport/src/rtems_putc.c') diff --git a/cpukit/libcsupport/src/rtems_putc.c b/cpukit/libcsupport/src/rtems_putc.c new file mode 100644 index 0000000000..8a2b022192 --- /dev/null +++ b/cpukit/libcsupport/src/rtems_putc.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2012 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Obere Lagerstr. 30 + * 82178 Puchheim + * Germany + * + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#if HAVE_CONFIG_H + #include "config.h" +#endif + +#include + +void rtems_putc(char c) +{ + (*BSP_output_char)(c); +} -- cgit v1.2.3