diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-08-13 11:29:13 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-08-20 10:10:25 +0200 |
commit | bd5a138629771ae174927791fcc7515232a0e4fa (patch) | |
tree | 71fa47154f0364937612e79a5780e48e107d256e /cpukit/libcsupport/src/rtems_putc.c | |
parent | bsp/lpc32xx: Specify scratch area alignment (diff) | |
download | rtems-bd5a138629771ae174927791fcc7515232a0e4fa.tar.bz2 |
libcsupport: Add and use rtems_putc()
This reduces code size and provides a function similar to fputc().
Diffstat (limited to 'cpukit/libcsupport/src/rtems_putc.c')
-rw-r--r-- | cpukit/libcsupport/src/rtems_putc.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 + * <rtems@embedded-brains.de> + * + * 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 <rtems/bspIo.h> + +void rtems_putc(char c) +{ + (*BSP_output_char)(c); +} |