OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [ps2kbd.c] - Diff between revs 86 and 87

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 86 Rev 87
Line 614... Line 614...
  if (!(kbd->rxfs = fopen (kbd->rxfile, "r"))
  if (!(kbd->rxfs = fopen (kbd->rxfile, "r"))
      && !(kbd->rxfs = fopen (kbd->rxfile, "r+")))
      && !(kbd->rxfs = fopen (kbd->rxfile, "r+")))
    {
    {
      /* Bug 1723 fixed: Clearer message */
      /* Bug 1723 fixed: Clearer message */
      fprintf (stderr,
      fprintf (stderr,
               "WARNING: PS2 keyboard unable to open RX file stream.\n");
               "Warning: PS2 keyboard unable to open RX file stream.\n");
      return;
      return;
    }
    }
  kbd->slowdown = (long) ((system_kfreq * 1000.0) / KBD_BAUD_RATE);
  kbd->slowdown = (long) ((system_kfreq * 1000.0) / KBD_BAUD_RATE);
  if (kbd->slowdown <= 0)
  if (kbd->slowdown <= 0)
    kbd->slowdown = 1;
    kbd->slowdown = 1;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.