source: rtems/cpukit/libcsupport/src/rtems_putc.c @ a029230a

Last change on this file since a029230a was a029230a, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 18, 2017 at 9:31:33 AM

Add "\n" to "\r\n" translation to rtems_putc()

Update #3122.

  • Property mode set to 100644
File size: 616 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief RTEMS Output a Character
5 *  @ingroup libcsupport
6 */
7
8/*
9 * Copyright (c) 2012, 2017 embedded brains GmbH.  All rights reserved.
10 *
11 *  embedded brains GmbH
12 *  Obere Lagerstr. 30
13 *  82178 Puchheim
14 *  Germany
15 *  <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.org/license/LICENSE.
20 */
21
22#if HAVE_CONFIG_H
23  #include "config.h"
24#endif
25
26#include <rtems/bspIo.h>
27
28void rtems_putc(char c)
29{
30  if (c == '\n') {
31    (*BSP_output_char)('\r');
32  }
33
34  (*BSP_output_char)(c);
35}
Note: See TracBrowser for help on using the repository browser.