URL
https://opencores.org/ocsvn/plasma/plasma/trunk
[/] [plasma/] [trunk/] [kernel/] [rtos_test.c] - Diff between revs 407 and 416
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 407 |
Rev 416 |
Line 106... |
Line 106... |
ptr = ptrs[j];
|
ptr = ptrs[j];
|
value = size[j];
|
value = size[j];
|
for(k = 0; k < value; ++k)
|
for(k = 0; k < value; ++k)
|
{
|
{
|
if(ptr[k] != value)
|
if(ptr[k] != value)
|
|
{
|
printf("Error\n");
|
printf("Error\n");
|
|
break;
|
|
}
|
}
|
}
|
OS_HeapFree(ptrs[j]);
|
OS_HeapFree(ptrs[j]);
|
}
|
}
|
size[j] = (uint8)(rand() & 255);
|
size[j] = (uint8)(rand() & 255);
|
ptrs[j] = OS_HeapMalloc(NULL, size[j]);
|
ptrs[j] = (uint8*)OS_HeapMalloc(NULL, size[j]);
|
if(ptrs[j] == NULL)
|
if(ptrs[j] == NULL)
|
printf("malloc NULL\n");
|
printf("malloc NULL\n");
|
else
|
else
|
memset(ptrs[j], size[j], size[j]);
|
memset(ptrs[j], size[j], size[j]);
|
}
|
}
|
Line 510... |
Line 513... |
EthernetInit(macAddress);
|
EthernetInit(macAddress);
|
IPInit(EthernetTransmit, macAddress, "plasma");
|
IPInit(EthernetTransmit, macAddress, "plasma");
|
HtmlInit(1);
|
HtmlInit(1);
|
#endif
|
#endif
|
|
|
#ifdef INCLUDE_HTML
|
#ifdef INCLUDE_UART_PACKETS
|
IPInit(NULL, macAddress, "plasma");
|
IPInit(NULL, macAddress, "plasma");
|
HtmlInit(1);
|
HtmlInit(1);
|
#endif
|
#endif
|
|
|
#ifdef INCLUDE_CONSOLE
|
#if !defined(EXCLUDE_CONSOLE) && (defined(INCLUDE_ETH) || defined(INCLUDE_UART_PACKETS))
|
ConsoleInit();
|
ConsoleInit();
|
#endif
|
#endif
|
|
|
for(;;)
|
for(;;)
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.