URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1390 |
Rev 1446 |
Line 273... |
Line 273... |
kbd->kresp = 0x0;
|
kbd->kresp = 0x0;
|
kbd->ccmdbyte = 0x65; /* We reset into default normal operation. */
|
kbd->ccmdbyte = 0x65; /* We reset into default normal operation. */
|
|
|
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+"))) {
|
fprintf (stderr, "WARNING: Keyboard has problems with RX file stream.\n");
|
fprintf (stderr, "WARNING: Unable to open RX file stream.\n");
|
return;
|
return;
|
}
|
}
|
kbd->slowdown = (long) ((config.sim.system_kfreq * 1000.) / KBD_BAUD_RATE);
|
kbd->slowdown = (long) ((config.sim.system_kfreq * 1000.) / KBD_BAUD_RATE);
|
if (kbd->slowdown <= 0) kbd->slowdown = 1;
|
if (kbd->slowdown <= 0) kbd->slowdown = 1;
|
SCHED_ADD(kbd_job, dat, kbd->slowdown);
|
SCHED_ADD(kbd_job, dat, kbd->slowdown);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.