Changeset e7c1313 in rtems


Ignore:
Timestamp:
Feb 15, 2005, 7:45:03 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dd380b5b
Parents:
4b61f6e5
Message:

2005-02-15 Ralf Corsepius <ralf.corsepius@…>

  • ppc403/console/console405.c: Rename round to spiBaudRound (Conflict with C99). Make spiBaudRound static.
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r4b61f6e5 re7c1313  
     12005-02-15      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * ppc403/console/console405.c: Rename round to spiBaudRound
     4        (Conflict with C99). Make spiBaudRound static.
     5
    162005-02-15      Ralf Corsepius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libcpu/powerpc/ppc403/console/console405.c

    r4b61f6e5 re7c1313  
    186186
    187187
    188 int round(double x)
     188static int spiBaudRound(double x)
    189189{
    190190  return (int)((int)((x-(int)x)*1000)>500 ? x+1 : x);
     
    196196  uint32_t   tmp;
    197197
    198   tmp = round( (double)rtems_cpu_configuration_get_serial_per_sec() / (baudrate * 16) );
     198  tmp = spiBaudRound( (double)rtems_cpu_configuration_get_serial_per_sec() / (baudrate * 16) );
    199199
    200200  port->LCR = port->LCR | LCR_DL;
Note: See TracChangeset for help on using the changeset viewer.