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

Subversion Repositories spacewire_light

[/] [spacewire_light/] [trunk/] [sw/] [rtems_driver/] [spwltest.c] - Diff between revs 6 and 9

Show entire file | Details | Blame | View Log

Rev 6 Rev 9
Line 817... Line 817...
                                           verify);
                                           verify);
                        if (ret < 0)
                        if (ret < 0)
                            return ret;
                            return ret;
                    }
                    }
 
 
 
                    if (txblocksize > packetsize && rxblocksize > packetsize)
 
                        break;
                }
                }
            }
            }
        }
        }
    }
    }
 
 
Line 1114... Line 1116...
            else
            else
                packetsize = 0;
                packetsize = 0;
 
 
            blocksize = 0;
            blocksize = 0;
            while (send || !queued) {
            while (send || !queued) {
                blocksize = get_num("Block size in bytes (32 .. 16384) ?", 32, MAX_BLOCK_SIZE, 4096);
                blocksize = get_num("Block size in bytes (1 .. 16384) ?", 1, MAX_BLOCK_SIZE, 4096);
                if ((blocksize & 3) == 0 || !queued)
                if ((blocksize & 3) == 0 || !queued)
                    break;
                    break;
                printf("INVALID: block size must be a multiple of 4 in queued mode\n");
                printf("INVALID: block size must be a multiple of 4 in queued mode\n");
            }
            }
 
 
Line 1166... Line 1168...
            eventloop = (opt == 2 || opt == 4);
            eventloop = (opt == 2 || opt == 4);
 
 
            npacket = get_num("Number of packets ?", 0, 1000000, -1);
            npacket = get_num("Number of packets ?", 0, 1000000, -1);
            packetsize = get_num("Packet size in bytes (1 .. 1000000) ?", 1, 1000000, -1);
            packetsize = get_num("Packet size in bytes (1 .. 1000000) ?", 1, 1000000, -1);
            while (1) {
            while (1) {
                blocksize = get_num("Block size in bytes (32 .. 16384) ?", 32, MAX_BLOCK_SIZE, 4096);
                blocksize = get_num("Block size in bytes (1 .. 16384) ?", 1, MAX_BLOCK_SIZE, 4096);
                if ((blocksize & 3) == 0 || !queued)
                if ((blocksize & 3) == 0 || !queued)
                    break;
                    break;
                printf("INVALID: block size must be a multiple of 4 in queued mode\n");
                printf("INVALID: block size must be a multiple of 4 in queued mode\n");
            }
            }
 
 

powered by: WebSVN 2.1.0

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