change log for rtems (2011-02-15)

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Feb 16 14:35:20 UTC 2011


On 02/16/2011 03:31 PM, Joel Sherrill wrote:
> On 02/16/2011 01:43 AM, Sebastian Huber wrote:
>> On 02/16/2011 01:10 AM, rtems-vc at rtems.org wrote:
>> [...]
>>> diff -u rtems/c/src/libchip/serial/ns16550_p.h:1.15
>>> rtems/c/src/libchip/serial/ns16550_p.h:1.16
>>> --- rtems/c/src/libchip/serial/ns16550_p.h:1.15    Fri Apr  9
>>> 17:44:05 2010
>>> +++ rtems/c/src/libchip/serial/ns16550_p.h    Tue Feb 15 17:25:24 2011
>>> @@ -27,7 +27,7 @@
>>>    *  will show up in the symbol table.
>>>    */
>>>
>>> -#define NS16550_STATIC static
>>> +#define NS16550_STATIC
>>>
>>>   #define NS16550_RECEIVE_BUFFER   0
>>>   #define NS16550_TRANSMIT_BUFFER  0
>> [...]
>>
>> What is the cause for this?
>>
> So you can use the libchip support for printk.
> 
> There is a replacement driver for the pc386 coming.
> 
> 

What about this?

static void output_char(char c)
{
  const console_fns *con = Console_Port_Tbl [Console_Port_Minor].pDeviceFns;

  if (c == '\n') {
    con->deviceWritePolled((int) Console_Port_Minor, '\r');
  }
  con->deviceWritePolled((int) Console_Port_Minor, c);
}

BSP_output_char_function_type BSP_output_char = output_char;

BSP_polling_getchar_function_type BSP_poll_char = NULL;

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the vc mailing list