Changeset e7c1313 in rtems for c/src/lib/libcpu/powerpc/ppc403


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.