URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 304 |
Rev 305 |
Line 413... |
Line 413... |
debug ("[%08x, %08x]\n", t->id, data);
|
debug ("[%08x, %08x]\n", t->id, data);
|
if (!t->read_func)
|
if (!t->read_func)
|
fprintf (stderr, "WARNING: packet sent to undefined id %x, %x\n", t->id, data);
|
fprintf (stderr, "WARNING: packet sent to undefined id %x, %x\n", t->id, data);
|
else
|
else
|
t->read_func(data);
|
t->read_func(data);
|
write_packet (t->id, data + 1); //REMOVE!!!!!!!!!!
|
|
}
|
}
|
|
|
void vapi_check ()
|
void vapi_check ()
|
{
|
{
|
struct vapi_handler *t;
|
struct vapi_handler *t;
|
Line 539... |
Line 538... |
for (; t; t = t->next)
|
for (; t; t = t->next)
|
if (!t->fd) numu++;
|
if (!t->fd) numu++;
|
return numu;
|
return numu;
|
}
|
}
|
|
|
int main ()
|
/* Sends a packet to specified test */
|
|
int vapi_send (unsigned long id, unsigned long data)
|
{
|
{
|
config.vapi.enabled = 1;
|
write_packet (id, data);
|
config.vapi.server_port = 9999;
|
|
vapi_init ();
|
|
while (1) {
|
|
vapi_check();
|
|
usleep(1);
|
|
}
|
|
vapi_done ();
|
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
|
|
|
/*
|
|
int main ()
|
|
{
|
|
config.vapi.enabled = 1;
|
|
config.vapi.server_port = 9999;
|
|
vapi_init ();
|
|
while (1) {
|
|
vapi_check();
|
|
usleep(1);
|
|
}
|
|
vapi_done ();
|
|
}*/
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.